	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_put_wav_header              ## -- Begin function ff_put_wav_header
	.p2align	4, 0x90
_ff_put_wav_header:                     ## @ff_put_wav_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	$1064, %rsp                     ## imm = 0x428
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r13d
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, -1104(%rbp)               ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rsi, %rdi
	callq	_avio_tell
	movl	%eax, %r14d
	leaq	-1072(%rbp), %rax
	movq	%rax, -1080(%rbp)
	movl	(%r15), %eax
	movl	$-1, %ebx
	testl	%eax, %eax
	je	LBB0_73
## %bb.1:
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	jg	LBB0_73
## %bb.2:
	movl	4(%r15), %esi
	movq	%r15, %rdi
	callq	_av_get_audio_frame_duration2
	movl	8(%r15), %ecx
	cmpl	$3, %ecx
	movl	%r14d, -1088(%rbp)              ## 4-byte Spill
	movl	%eax, -1092(%rbp)               ## 4-byte Spill
	jl	LBB0_4
## %bb.3:
	cmpl	$0, 12(%r15)
	jne	LBB0_10
	jmp	LBB0_11
LBB0_4:
	cmpl	$2, %ecx
	je	LBB0_8
## %bb.5:
	cmpl	$1, %ecx
	jne	LBB0_11
## %bb.6:
	movl	12(%r15), %edx
	testl	%edx, %edx
	je	LBB0_11
## %bb.7:
	movq	_AV_CH_LAYOUT_MONO@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %edx
	jne	LBB0_10
	jmp	LBB0_11
LBB0_8:
	movl	12(%r15), %edx
	testl	%edx, %edx
	je	LBB0_11
## %bb.9:
	movq	_AV_CH_LAYOUT_STEREO@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %edx
	je	LBB0_11
LBB0_10:
	movb	$1, %bl
	movl	$65534, %r14d                   ## imm = 0xFFFE
	jmp	LBB0_15
LBB0_11:
	movb	$1, %bl
	movl	$65534, %r14d                   ## imm = 0xFFFE
	cmpl	$48000, 16(%r15)                ## imm = 0xBB80
	jg	LBB0_15
## %bb.12:
	movq	24(%r15), %rdi
	movq	_AV_CODEC_ID_EAC3@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_15
## %bb.13:
	callq	_av_get_bits_per_sample
	cmpl	$16, %eax
	jg	LBB0_15
## %bb.14:
	movl	(%r15), %r14d
	xorl	%ebx, %ebx
LBB0_15:
	movl	%ebx, -1096(%rbp)               ## 4-byte Spill
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_avio_wl16
	movl	8(%r15), %esi
	movq	%r12, %rdi
	callq	_avio_wl16
	movl	16(%r15), %esi
	movq	%r12, %rdi
	callq	_avio_wl32
	movq	24(%r15), %rdi
	movq	_AV_CODEC_ID_ATRAC3@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	movq	_AV_CODEC_ID_G723_1@GOTPCREL(%rip), %rbx
	movq	_AV_CODEC_ID_GSM_MS@GOTPCREL(%rip), %rcx
	cmpq	(%rax), %rdi
	je	LBB0_22
## %bb.16:
	cmpq	(%rbx), %rdi
	je	LBB0_22
## %bb.17:
	movq	_AV_CODEC_ID_MP2@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_22
## %bb.18:
	movq	_AV_CODEC_ID_MP3@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_22
## %bb.19:
	cmpq	(%rcx), %rdi
	je	LBB0_22
## %bb.20:
	callq	_av_get_bits_per_sample
	movq	_AV_CODEC_ID_G723_1@GOTPCREL(%rip), %rbx
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_22
## %bb.21:
	movl	32(%r15), %eax
	testl	%eax, %eax
	movl	$16, %r14d
	cmovnel	%eax, %r14d
LBB0_22:
	movl	32(%r15), %ecx
	cmpl	%ecx, %r14d
	je	LBB0_25
## %bb.23:
	testl	%ecx, %ecx
	je	LBB0_25
## %bb.24:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	-1104(%rbp), %rdi               ## 8-byte Reload
	movl	%r14d, %r8d
	callq	_av_log
	movq	_AV_CODEC_ID_G723_1@GOTPCREL(%rip), %rbx
LBB0_25:
	movq	24(%r15), %rcx
	movq	_AV_CODEC_ID_MP2@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	movl	%r13d, -1084(%rbp)              ## 4-byte Spill
	jne	LBB0_27
## %bb.26:
	movl	36(%r15), %eax
	leal	(%rax,%rax,8), %eax
	shll	$4, %eax
	decl	%eax
	cltd
	idivl	16(%r15)
	movl	%eax, %r13d
	incl	%r13d
	jmp	LBB0_35
LBB0_27:
	movq	_AV_CODEC_ID_MP3@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_29
## %bb.28:
	cmpl	$28001, 16(%r15)                ## imm = 0x6D61
	movl	$576, %eax                      ## imm = 0x240
	movl	$1152, %r13d                    ## imm = 0x480
	cmovll	%eax, %r13d
	jmp	LBB0_35
LBB0_29:
	movq	_AV_CODEC_ID_AC3@GOTPCREL(%rip), %rax
	movl	$3840, %r13d                    ## imm = 0xF00
	cmpq	(%rax), %rcx
	je	LBB0_35
## %bb.30:
	movq	_AV_CODEC_ID_AAC@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_32
## %bb.31:
	movl	8(%r15), %eax
	shll	$8, %eax
	leal	(%rax,%rax,2), %r13d
	jmp	LBB0_35
LBB0_32:
	movl	$24, %r13d
	cmpq	(%rbx), %rcx
	je	LBB0_35
## %bb.33:
	movl	4(%r15), %r13d
	testl	%r13d, %r13d
	jne	LBB0_35
## %bb.34:
	movl	8(%r15), %r13d
	imull	%r14d, %r13d
	movl	$8, %edi
	movl	%r14d, %esi
	callq	_av_gcd
	movq	_AV_CODEC_ID_G723_1@GOTPCREL(%rip), %rbx
	movl	%eax, %ecx
	movl	%r13d, %eax
	cltd
	idivl	%ecx
	movl	%eax, %r13d
	movq	24(%r15), %rcx
LBB0_35:
	movq	_AV_CODEC_ID_PCM_U8@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	je	LBB0_43
## %bb.36:
	movq	_AV_CODEC_ID_PCM_S24LE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	je	LBB0_43
## %bb.37:
	movq	_AV_CODEC_ID_PCM_S32LE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	je	LBB0_43
## %bb.38:
	movq	_AV_CODEC_ID_PCM_F32LE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	je	LBB0_43
## %bb.39:
	movq	_AV_CODEC_ID_PCM_F64LE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	je	LBB0_43
## %bb.40:
	movq	_AV_CODEC_ID_PCM_S16LE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	je	LBB0_43
## %bb.41:
	movl	$800, %esi                      ## imm = 0x320
	cmpq	(%rbx), %rcx
	je	LBB0_44
## %bb.42:
	movl	36(%r15), %eax
	leal	7(%rax), %esi
	testl	%eax, %eax
	cmovnsl	%eax, %esi
	sarl	$3, %esi
	jmp	LBB0_44
LBB0_43:
	movl	16(%r15), %esi
	imull	%r13d, %esi
LBB0_44:
	movq	%r12, %rdi
	callq	_avio_wl32
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_avio_wl16
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_avio_wl16
	movq	24(%r15), %rax
	movq	_AV_CODEC_ID_MP3@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_46
## %bb.45:
	leaq	-1080(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_bytestream_put_le16
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_bytestream_put_le32
	movq	%rbx, %rdi
	movl	$1152, %esi                     ## imm = 0x480
	callq	_bytestream_put_le16
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_bytestream_put_le16
	movq	%rbx, %rdi
	movl	$1393, %esi                     ## imm = 0x571
	callq	_bytestream_put_le16
	jmp	LBB0_48
LBB0_46:
	movq	_AV_CODEC_ID_MP2@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_56
## %bb.47:
	leaq	-1080(%rbp), %r13
	movq	%r13, %rdi
	movl	$2, %esi
	callq	_bytestream_put_le16
	movl	36(%r15), %esi
	movq	%r13, %rdi
	callq	_bytestream_put_le32
	cmpl	$2, 8(%r15)
	movl	$1, %eax
	movl	$8, %esi
	cmovel	%eax, %esi
	movq	%r13, %rdi
	callq	_bytestream_put_le16
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_bytestream_put_le16
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_bytestream_put_le16
	movq	%r13, %rdi
	movl	$16, %esi
	callq	_bytestream_put_le16
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_bytestream_put_le32
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_bytestream_put_le32
LBB0_48:
	leaq	-1072(%rbp), %rbx
LBB0_49:
	movl	-1084(%rbp), %ecx               ## 4-byte Reload
LBB0_50:
	cmpb	$0, -1096(%rbp)                 ## 1-byte Folded Reload
	je	LBB0_53
## %bb.51:
	movq	_FF_PUT_WAV_HEADER_SKIP_CHANNELMASK@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_58
## %bb.52:
	movq	-1080(%rbp), %rsi
	subq	%rbx, %rsi
	shrq	$2, %rsi
	addl	$22, %esi
	movq	%r12, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_avio_wl16
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_avio_wl16
	xorl	%esi, %esi
	jmp	LBB0_68
LBB0_53:
	movq	_FF_PUT_WAV_HEADER_FORCE_WAVEFORMATEX@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_60
## %bb.54:
	movq	-1080(%rbp), %rsi
	movl	-1088(%rbp), %r14d              ## 4-byte Reload
LBB0_55:
	subq	%rbx, %rsi
	shrq	$2, %rsi
	movq	%r12, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_avio_wl16
	jmp	LBB0_71
LBB0_56:
	movq	_AV_CODEC_ID_G723_1@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	leaq	-1072(%rbp), %rbx
	jne	LBB0_62
## %bb.57:
	leaq	-1080(%rbp), %r13
	movq	%r13, %rdi
	movl	$-1697775614, %esi              ## imm = 0x9ACE0002
	callq	_bytestream_put_le32
	movq	%r13, %rdi
	movl	$-1365051598, %esi              ## imm = 0xAEA2F732
	callq	_bytestream_put_le32
	movq	%r13, %rdi
	movl	$44254, %esi                    ## imm = 0xACDE
	jmp	LBB0_76
LBB0_58:
	movq	-1104(%rbp), %rax               ## 8-byte Reload
	movq	(%rax), %rax
	movq	_FF_COMPLIANCE_NORMAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_66
## %bb.59:
	movq	-1080(%rbp), %rsi
	subq	%rbx, %rsi
	shrq	$2, %rsi
	addl	$22, %esi
	movq	%r12, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_avio_wl16
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_avio_wl16
	jmp	LBB0_67
LBB0_60:
	cmpl	$1, (%r15)
	movq	-1080(%rbp), %rsi
	movl	-1088(%rbp), %r14d              ## 4-byte Reload
	jne	LBB0_55
## %bb.61:
	cmpq	%rbx, %rsi
	je	LBB0_71
	jmp	LBB0_55
LBB0_62:
	movq	_AV_CODEC_ID_GSM_MS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_75
## %bb.63:
	movq	_AV_CODEC_ID_ADPCM_IMA_WAV@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_75
## %bb.64:
	movslq	40(%r15), %rax
	testq	%rax, %rax
	movl	-1084(%rbp), %ecx               ## 4-byte Reload
	je	LBB0_50
## %bb.65:
	movq	48(%r15), %rbx
	leaq	(%rbx,%rax,4), %rax
	movq	%rax, -1080(%rbp)
	jmp	LBB0_50
LBB0_66:
	movl	12(%r15), %r13d
	movq	-1080(%rbp), %rsi
	subq	%rbx, %rsi
	shrq	$2, %rsi
	addl	$22, %esi
	movq	%r12, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_avio_wl16
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_avio_wl16
	xorl	%esi, %esi
	cmpl	$262144, %r13d                  ## imm = 0x40000
	jge	LBB0_68
LBB0_67:
	movl	12(%r15), %esi
LBB0_68:
	movq	%r12, %rdi
	callq	_avio_wl32
	movq	24(%r15), %rdi
	movq	_AV_CODEC_ID_EAC3@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	movl	-1088(%rbp), %r14d              ## 4-byte Reload
	jne	LBB0_70
## %bb.69:
	movq	_ff_codec_wav_guids@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ff_get_codec_guid
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_ff_put_guid
	jmp	LBB0_71
LBB0_70:
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_avio_wl32
	movq	%r12, %rdi
	movl	$1048576, %esi                  ## imm = 0x100000
	callq	_avio_wl32
	movq	%r12, %rdi
	movl	$-1442840448, %esi              ## imm = 0xAA000080
	callq	_avio_wl32
	movq	%r12, %rdi
	movl	$1905997824, %esi               ## imm = 0x719B3800
	callq	_avio_wl32
LBB0_71:
	movq	-1080(%rbp), %rdx
	subq	%rbx, %rdx
	shrq	$2, %rdx
	movq	%r12, %rdi
	movq	%rbx, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_avio_write
	movq	%r12, %rdi
	callq	_avio_tell
	movl	%eax, %ebx
	subl	%r14d, %ebx
	testb	$1, %bl
	je	LBB0_73
## %bb.72:
	incl	%ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_avio_w8
LBB0_73:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_77
## %bb.74:
	movl	%ebx, %eax
	addq	$1064, %rsp                     ## imm = 0x428
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_75:
	leaq	-1080(%rbp), %rdi
	movl	-1092(%rbp), %esi               ## 4-byte Reload
LBB0_76:
	callq	_bytestream_put_le16
	jmp	LBB0_49
LBB0_77:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_CH_LAYOUT_MONO,4,2          ## @AV_CH_LAYOUT_MONO
	.comm	_AV_CH_LAYOUT_STEREO,4,2        ## @AV_CH_LAYOUT_STEREO
	.comm	_AV_CODEC_ID_EAC3,8,3           ## @AV_CODEC_ID_EAC3
	.comm	_AV_CODEC_ID_ATRAC3,8,3         ## @AV_CODEC_ID_ATRAC3
	.comm	_AV_CODEC_ID_G723_1,8,3         ## @AV_CODEC_ID_G723_1
	.comm	_AV_CODEC_ID_MP2,8,3            ## @AV_CODEC_ID_MP2
	.comm	_AV_CODEC_ID_MP3,8,3            ## @AV_CODEC_ID_MP3
	.comm	_AV_CODEC_ID_GSM_MS,8,3         ## @AV_CODEC_ID_GSM_MS
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"requested bits_per_coded_sample (%d) and actually stored (%d) differ\n"

	.comm	_AV_CODEC_ID_AC3,8,3            ## @AV_CODEC_ID_AC3
	.comm	_AV_CODEC_ID_AAC,8,3            ## @AV_CODEC_ID_AAC
	.comm	_AV_CODEC_ID_PCM_U8,8,3         ## @AV_CODEC_ID_PCM_U8
	.comm	_AV_CODEC_ID_PCM_S24LE,8,3      ## @AV_CODEC_ID_PCM_S24LE
	.comm	_AV_CODEC_ID_PCM_S32LE,8,3      ## @AV_CODEC_ID_PCM_S32LE
	.comm	_AV_CODEC_ID_PCM_F32LE,8,3      ## @AV_CODEC_ID_PCM_F32LE
	.comm	_AV_CODEC_ID_PCM_F64LE,8,3      ## @AV_CODEC_ID_PCM_F64LE
	.comm	_AV_CODEC_ID_PCM_S16LE,8,3      ## @AV_CODEC_ID_PCM_S16LE
	.comm	_AV_CODEC_ID_ADPCM_IMA_WAV,8,3  ## @AV_CODEC_ID_ADPCM_IMA_WAV
	.comm	_FF_PUT_WAV_HEADER_SKIP_CHANNELMASK,4,2 ## @FF_PUT_WAV_HEADER_SKIP_CHANNELMASK
	.comm	_FF_COMPLIANCE_NORMAL,8,3       ## @FF_COMPLIANCE_NORMAL
	.comm	_ff_codec_wav_guids,4,2         ## @ff_codec_wav_guids
	.comm	_FF_PUT_WAV_HEADER_FORCE_WAVEFORMATEX,4,2 ## @FF_PUT_WAV_HEADER_FORCE_WAVEFORMATEX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_put_wav_header              ; -- Begin function ff_put_wav_header
	.p2align	2
_ff_put_wav_header:                     ; @ff_put_wav_header
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #1072
	mov	x22, x3
	mov	x21, x2
	mov	x19, x1
	mov	x27, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	mov	x0, x1
	bl	_avio_tell
	add	x8, sp, #32
	str	x8, [sp, #24]
	ldr	w8, [x21]
	mov	w24, #-1
	cbz	w8, LBB0_74
; %bb.1:
	cmp	w8, #16, lsl #12                ; =65536
	b.ge	LBB0_74
; %bb.2:
	mov	x20, x0
	ldr	w1, [x21, #4]
	mov	x0, x21
	bl	_av_get_audio_frame_duration2
	mov	x26, x0
	ldr	w8, [x21, #8]
	cmp	w8, #3
	str	w20, [sp, #20]                  ; 4-byte Folded Spill
	b.lt	LBB0_4
; %bb.3:
	ldr	w8, [x21, #12]
	cbnz	w8, LBB0_14
	b	LBB0_11
LBB0_4:
	cmp	w8, #2
	b.eq	LBB0_8
; %bb.5:
	cmp	w8, #1
	b.ne	LBB0_11
; %bb.6:
	ldr	w8, [x21, #12]
	cbz	w8, LBB0_11
; %bb.7:
Lloh3:
	adrp	x9, _AV_CH_LAYOUT_MONO@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AV_CH_LAYOUT_MONO@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
	ldr	w8, [x21, #12]
	cbz	w8, LBB0_11
; %bb.9:
Lloh5:
	adrp	x9, _AV_CH_LAYOUT_STEREO@GOTPAGE
Lloh6:
	ldr	x9, [x9, _AV_CH_LAYOUT_STEREO@GOTPAGEOFF]
LBB0_10:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_14
LBB0_11:
	ldr	w8, [x21, #16]
	mov	w9, #48000
	cmp	w8, w9
	b.gt	LBB0_14
; %bb.12:
	ldr	x0, [x21, #24]
Lloh7:
	adrp	x8, _AV_CODEC_ID_EAC3@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AV_CODEC_ID_EAC3@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_14
; %bb.13:
	bl	_av_get_bits_per_sample
	cmp	w0, #16
	b.le	LBB0_30
LBB0_14:
	mov	w8, #1
	str	w8, [sp, #16]                   ; 4-byte Folded Spill
	mov	w1, #65534
LBB0_15:
	mov	x0, x19
	bl	_avio_wl16
	ldr	w1, [x21, #8]
	mov	x0, x19
	bl	_avio_wl16
	ldr	w1, [x21, #16]
	mov	x0, x19
	bl	_avio_wl32
	ldr	x0, [x21, #24]
Lloh10:
	adrp	x8, _AV_CODEC_ID_ATRAC3@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AV_CODEC_ID_ATRAC3@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
Lloh13:
	adrp	x28, _AV_CODEC_ID_G723_1@GOTPAGE
Lloh14:
	ldr	x28, [x28, _AV_CODEC_ID_G723_1@GOTPAGEOFF]
	ldr	x9, [x28]
Lloh15:
	adrp	x20, _AV_CODEC_ID_MP2@GOTPAGE
Lloh16:
	ldr	x20, [x20, _AV_CODEC_ID_MP2@GOTPAGEOFF]
	ldr	x10, [x20]
Lloh17:
	adrp	x25, _AV_CODEC_ID_MP3@GOTPAGE
Lloh18:
	ldr	x25, [x25, _AV_CODEC_ID_MP3@GOTPAGEOFF]
	ldr	x11, [x25]
Lloh19:
	adrp	x23, _AV_CODEC_ID_GSM_MS@GOTPAGE
Lloh20:
	ldr	x23, [x23, _AV_CODEC_ID_GSM_MS@GOTPAGEOFF]
	ldr	x12, [x23]
	cmp	x0, x8
	ccmp	x0, x9, #4, ne
	ccmp	x0, x10, #4, ne
	ccmp	x0, x11, #4, ne
	ccmp	x0, x12, #4, ne
	b.ne	LBB0_17
; %bb.16:
	mov	w24, #0
	b	LBB0_19
LBB0_17:
	bl	_av_get_bits_per_sample
	mov	x24, x0
	cbnz	w0, LBB0_19
; %bb.18:
	ldr	w8, [x21, #32]
	mov	w9, #16
	cmp	w8, #0
	csel	w24, w9, w8, eq
LBB0_19:
	ldr	w3, [x21, #32]
	cmp	w24, w3
	b.eq	LBB0_22
; %bb.20:
	cbz	w3, LBB0_22
; %bb.21:
Lloh21:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
Lloh24:
	adrp	x2, l_.str@PAGE
Lloh25:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x27
	mov	x4, x24
	bl	_av_log
LBB0_22:
	ldr	x8, [x21, #24]
	ldr	x9, [x20]
	cmp	x8, x9
	str	w26, [sp, #12]                  ; 4-byte Folded Spill
	b.ne	LBB0_24
; %bb.23:
	ldr	w9, [x21, #36]
	mov	w10, #144
	mul	w9, w9, w10
	sub	w9, w9, #1
	ldr	w10, [x21, #16]
	sdiv	w9, w9, w10
	add	w26, w9, #1
	b	LBB0_35
LBB0_24:
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_26
; %bb.25:
	ldr	w9, [x21, #16]
	mov	w10, #28001
	mov	w11, #1152
	mov	w12, #576
	cmp	w9, w10
	csel	w26, w12, w11, lt
	b	LBB0_35
LBB0_26:
Lloh26:
	adrp	x9, _AV_CODEC_ID_AC3@GOTPAGE
Lloh27:
	ldr	x9, [x9, _AV_CODEC_ID_AC3@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_28
; %bb.27:
	mov	w26, #3840
	b	LBB0_35
LBB0_28:
Lloh29:
	adrp	x9, _AV_CODEC_ID_AAC@GOTPAGE
Lloh30:
	ldr	x9, [x9, _AV_CODEC_ID_AAC@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_31
; %bb.29:
	ldr	w9, [x21, #8]
	add	w9, w9, w9, lsl #1
	lsl	w26, w9, #8
	b	LBB0_35
LBB0_30:
	str	wzr, [sp, #16]                  ; 4-byte Folded Spill
	ldr	w1, [x21]
	b	LBB0_15
LBB0_31:
	ldr	x9, [x28]
	cmp	x8, x9
	b.ne	LBB0_33
; %bb.32:
	mov	w26, #24
	b	LBB0_35
LBB0_33:
	ldr	w26, [x21, #4]
	cbnz	w26, LBB0_35
; %bb.34:
	ldr	w8, [x21, #8]
	mul	w26, w8, w24
	mov	w0, #8
	mov	x1, x24
	bl	_av_gcd
	ldr	x8, [x21, #24]
	sdiv	w26, w26, w0
LBB0_35:
Lloh32:
	adrp	x9, _AV_CODEC_ID_PCM_U8@GOTPAGE
Lloh33:
	ldr	x9, [x9, _AV_CODEC_ID_PCM_U8@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_43
; %bb.36:
Lloh35:
	adrp	x9, _AV_CODEC_ID_PCM_S24LE@GOTPAGE
Lloh36:
	ldr	x9, [x9, _AV_CODEC_ID_PCM_S24LE@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_43
; %bb.37:
Lloh38:
	adrp	x9, _AV_CODEC_ID_PCM_S32LE@GOTPAGE
Lloh39:
	ldr	x9, [x9, _AV_CODEC_ID_PCM_S32LE@GOTPAGEOFF]
Lloh40:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_43
; %bb.38:
Lloh41:
	adrp	x9, _AV_CODEC_ID_PCM_F32LE@GOTPAGE
Lloh42:
	ldr	x9, [x9, _AV_CODEC_ID_PCM_F32LE@GOTPAGEOFF]
Lloh43:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_43
; %bb.39:
Lloh44:
	adrp	x9, _AV_CODEC_ID_PCM_F64LE@GOTPAGE
Lloh45:
	ldr	x9, [x9, _AV_CODEC_ID_PCM_F64LE@GOTPAGEOFF]
Lloh46:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_43
; %bb.40:
Lloh47:
	adrp	x9, _AV_CODEC_ID_PCM_S16LE@GOTPAGE
Lloh48:
	ldr	x9, [x9, _AV_CODEC_ID_PCM_S16LE@GOTPAGEOFF]
Lloh49:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_43
; %bb.41:
	ldr	x9, [x28]
	cmp	x8, x9
	b.ne	LBB0_44
; %bb.42:
	mov	w1, #800
	b	LBB0_45
LBB0_43:
	ldr	w8, [x21, #16]
	mul	w1, w8, w26
	b	LBB0_45
LBB0_44:
	ldr	w8, [x21, #36]
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w1, w8, #3
LBB0_45:
	mov	x0, x19
	bl	_avio_wl32
	mov	x0, x19
	mov	x1, x26
	bl	_avio_wl16
	mov	x0, x19
	mov	x1, x24
	bl	_avio_wl16
	ldr	x8, [x21, #24]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_50
; %bb.46:
	add	x26, sp, #32
	add	x0, sp, #24
	mov	w1, #1
	bl	_bytestream_put_le16
	add	x0, sp, #24
	mov	w1, #2
	bl	_bytestream_put_le32
	add	x0, sp, #24
	mov	w1, #1152
	bl	_bytestream_put_le16
	add	x0, sp, #24
	mov	w1, #1
	bl	_bytestream_put_le16
	add	x0, sp, #24
	mov	w1, #1393
LBB0_47:
	bl	_bytestream_put_le16
	ldr	w8, [sp, #16]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_52
LBB0_48:
Lloh50:
	adrp	x8, _FF_PUT_WAV_HEADER_SKIP_CHANNELMASK@GOTPAGE
Lloh51:
	ldr	x8, [x8, _FF_PUT_WAV_HEADER_SKIP_CHANNELMASK@GOTPAGEOFF]
Lloh52:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_57
; %bb.49:
	ldr	x8, [sp, #24]
	sub	x8, x8, x26
	lsr	x8, x8, #2
	add	w1, w8, #22
	mov	x0, x19
	bl	_avio_wl16
	mov	x0, x19
	mov	x1, x24
	bl	_avio_wl16
	mov	w1, #0
	ldr	w20, [sp, #20]                  ; 4-byte Folded Reload
	b	LBB0_69
LBB0_50:
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_55
; %bb.51:
	add	x26, sp, #32
	add	x0, sp, #24
	mov	w1, #2
	bl	_bytestream_put_le16
	ldr	w1, [x21, #36]
	add	x0, sp, #24
	bl	_bytestream_put_le32
	ldr	w8, [x21, #8]
	cmp	w8, #2
	mov	w8, #8
	csinc	w1, w8, wzr, ne
	add	x0, sp, #24
	bl	_bytestream_put_le16
	add	x0, sp, #24
	mov	w1, #0
	bl	_bytestream_put_le16
	add	x0, sp, #24
	mov	w1, #1
	bl	_bytestream_put_le16
	add	x0, sp, #24
	mov	w1, #16
	bl	_bytestream_put_le16
	add	x0, sp, #24
	mov	w1, #0
	bl	_bytestream_put_le32
	add	x0, sp, #24
	mov	w1, #0
	bl	_bytestream_put_le32
	ldr	w8, [sp, #16]                   ; 4-byte Folded Reload
	cbnz	w8, LBB0_48
LBB0_52:
Lloh53:
	adrp	x8, _FF_PUT_WAV_HEADER_FORCE_WAVEFORMATEX@GOTPAGE
Lloh54:
	ldr	x8, [x8, _FF_PUT_WAV_HEADER_FORCE_WAVEFORMATEX@GOTPAGEOFF]
Lloh55:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_59
; %bb.53:
	ldr	x8, [sp, #24]
	ldr	w20, [sp, #20]                  ; 4-byte Folded Reload
LBB0_54:
	sub	x8, x8, x26
	lsr	x1, x8, #2
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_avio_wl16
	b	LBB0_72
LBB0_55:
	ldr	x9, [x28]
	cmp	x8, x9
	b.ne	LBB0_61
; %bb.56:
	add	x26, sp, #32
	add	x0, sp, #24
	mov	w1, #2
	movk	w1, #39630, lsl #16
	bl	_bytestream_put_le32
	add	x0, sp, #24
	mov	w1, #63282
	movk	w1, #44706, lsl #16
	bl	_bytestream_put_le32
	add	x0, sp, #24
	mov	w1, #44254
	b	LBB0_47
LBB0_57:
	ldr	x8, [x27]
Lloh56:
	adrp	x9, _FF_COMPLIANCE_NORMAL@GOTPAGE
Lloh57:
	ldr	x9, [x9, _FF_COMPLIANCE_NORMAL@GOTPAGEOFF]
Lloh58:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_65
; %bb.58:
	ldr	x8, [sp, #24]
	sub	x8, x8, x26
	lsr	x8, x8, #2
	add	w1, w8, #22
	mov	x0, x19
	bl	_avio_wl16
	mov	x0, x19
	mov	x1, x24
	bl	_avio_wl16
	ldr	w20, [sp, #20]                  ; 4-byte Folded Reload
	b	LBB0_66
LBB0_59:
	ldr	w9, [x21]
	ldr	x8, [sp, #24]
	cmp	w9, #1
	ldr	w20, [sp, #20]                  ; 4-byte Folded Reload
	b.ne	LBB0_54
; %bb.60:
	cmp	x8, x26
	b.eq	LBB0_72
	b	LBB0_54
LBB0_61:
	ldr	x9, [x23]
	cmp	x8, x9
	b.eq	LBB0_67
; %bb.62:
Lloh59:
	adrp	x9, _AV_CODEC_ID_ADPCM_IMA_WAV@GOTPAGE
Lloh60:
	ldr	x9, [x9, _AV_CODEC_ID_ADPCM_IMA_WAV@GOTPAGEOFF]
Lloh61:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_67
; %bb.63:
	ldrsw	x8, [x21, #40]
	cbz	w8, LBB0_76
; %bb.64:
	ldr	x26, [x21, #48]
	add	x8, x26, x8, lsl #2
	str	x8, [sp, #24]
	ldr	w8, [sp, #16]                   ; 4-byte Folded Reload
	cbnz	w8, LBB0_48
	b	LBB0_52
LBB0_65:
	ldr	w20, [x21, #12]
	ldr	x8, [sp, #24]
	sub	x8, x8, x26
	lsr	x8, x8, #2
	add	w1, w8, #22
	mov	x0, x19
	bl	_avio_wl16
	mov	x0, x19
	mov	x1, x24
	bl	_avio_wl16
	cmp	w20, #64, lsl #12               ; =262144
	ldr	w20, [sp, #20]                  ; 4-byte Folded Reload
	b.ge	LBB0_68
LBB0_66:
	ldr	w1, [x21, #12]
	b	LBB0_69
LBB0_67:
	add	x26, sp, #32
	add	x0, sp, #24
	ldr	w1, [sp, #12]                   ; 4-byte Folded Reload
	b	LBB0_47
LBB0_68:
	mov	w1, #0
LBB0_69:
	mov	x0, x19
	bl	_avio_wl32
	ldr	x0, [x21, #24]
Lloh62:
	adrp	x8, _AV_CODEC_ID_EAC3@GOTPAGE
Lloh63:
	ldr	x8, [x8, _AV_CODEC_ID_EAC3@GOTPAGEOFF]
Lloh64:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_71
; %bb.70:
Lloh65:
	adrp	x8, _ff_codec_wav_guids@GOTPAGE
Lloh66:
	ldr	x8, [x8, _ff_codec_wav_guids@GOTPAGEOFF]
Lloh67:
	ldr	w1, [x8]
	bl	_ff_get_codec_guid
	mov	x1, x0
	mov	x0, x19
	bl	_ff_put_guid
	b	LBB0_72
LBB0_71:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_avio_wl32
	mov	x0, x19
	mov	w1, #1048576
	bl	_avio_wl32
	mov	x0, x19
	mov	w1, #128
	movk	w1, #43520, lsl #16
	bl	_avio_wl32
	mov	x0, x19
	mov	w1, #14336
	movk	w1, #29083, lsl #16
	bl	_avio_wl32
LBB0_72:
	ldr	x8, [sp, #24]
	sub	x8, x8, x26
	lsr	x2, x8, #2
	mov	x0, x19
	mov	x1, x26
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_avio_write
	mov	x0, x19
	bl	_avio_tell
	sub	w24, w0, w20
	tbz	w24, #0, LBB0_74
; %bb.73:
	add	w24, w24, #1
	mov	x0, x19
	mov	w1, #0
	bl	_avio_w8
LBB0_74:
	ldur	x8, [x29, #-96]
Lloh68:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh69:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh70:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_77
; %bb.75:
	mov	x0, x24
	add	sp, sp, #1072
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_76:
	add	x26, sp, #32
	ldr	w8, [sp, #16]                   ; 4-byte Folded Reload
	cbnz	w8, LBB0_48
	b	LBB0_52
LBB0_77:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_CH_LAYOUT_MONO,4,2          ; @AV_CH_LAYOUT_MONO
	.comm	_AV_CH_LAYOUT_STEREO,4,2        ; @AV_CH_LAYOUT_STEREO
	.comm	_AV_CODEC_ID_EAC3,8,3           ; @AV_CODEC_ID_EAC3
	.comm	_AV_CODEC_ID_ATRAC3,8,3         ; @AV_CODEC_ID_ATRAC3
	.comm	_AV_CODEC_ID_G723_1,8,3         ; @AV_CODEC_ID_G723_1
	.comm	_AV_CODEC_ID_MP2,8,3            ; @AV_CODEC_ID_MP2
	.comm	_AV_CODEC_ID_MP3,8,3            ; @AV_CODEC_ID_MP3
	.comm	_AV_CODEC_ID_GSM_MS,8,3         ; @AV_CODEC_ID_GSM_MS
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"requested bits_per_coded_sample (%d) and actually stored (%d) differ\n"

	.comm	_AV_CODEC_ID_AC3,8,3            ; @AV_CODEC_ID_AC3
	.comm	_AV_CODEC_ID_AAC,8,3            ; @AV_CODEC_ID_AAC
	.comm	_AV_CODEC_ID_PCM_U8,8,3         ; @AV_CODEC_ID_PCM_U8
	.comm	_AV_CODEC_ID_PCM_S24LE,8,3      ; @AV_CODEC_ID_PCM_S24LE
	.comm	_AV_CODEC_ID_PCM_S32LE,8,3      ; @AV_CODEC_ID_PCM_S32LE
	.comm	_AV_CODEC_ID_PCM_F32LE,8,3      ; @AV_CODEC_ID_PCM_F32LE
	.comm	_AV_CODEC_ID_PCM_F64LE,8,3      ; @AV_CODEC_ID_PCM_F64LE
	.comm	_AV_CODEC_ID_PCM_S16LE,8,3      ; @AV_CODEC_ID_PCM_S16LE
	.comm	_AV_CODEC_ID_ADPCM_IMA_WAV,8,3  ; @AV_CODEC_ID_ADPCM_IMA_WAV
	.comm	_FF_PUT_WAV_HEADER_SKIP_CHANNELMASK,4,2 ; @FF_PUT_WAV_HEADER_SKIP_CHANNELMASK
	.comm	_FF_COMPLIANCE_NORMAL,8,3       ; @FF_COMPLIANCE_NORMAL
	.comm	_ff_codec_wav_guids,4,2         ; @ff_codec_wav_guids
	.comm	_FF_PUT_WAV_HEADER_FORCE_WAVEFORMATEX,4,2 ; @FF_PUT_WAV_HEADER_FORCE_WAVEFORMATEX
.subsections_via_symbols
