	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mov_write_wave_tag
_mov_write_wave_tag:                    ## @mov_write_wave_tag
	.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	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	%rsi, %rdi
	callq	_avio_tell
	movl	%eax, %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_avio_wb32
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_ffio_wfourcc
	movq	(%r15), %rax
	movq	(%rax), %rdi
	movq	_AV_CODEC_ID_QDM2@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rdi
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	movl	$12, %esi
	callq	_avio_wb32
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_ffio_wfourcc
	movl	8(%r15), %esi
	movq	%rbx, %rdi
	callq	_avio_wl32
	movq	(%r15), %rax
	movq	(%rax), %rdi
LBB0_2:
	movq	_AV_CODEC_ID_AAC@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	movl	$12, %esi
	callq	_avio_wb32
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_ffio_wfourcc
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_avio_wb32
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_mov_write_esds_tag
	jmp	LBB0_20
LBB0_4:
	callq	_mov_pcm_le_gt16
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_mov_write_enda_tag
	jmp	LBB0_20
LBB0_6:
	movq	(%r15), %rax
	movq	(%rax), %rdi
	callq	_mov_pcm_be_gt16
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	callq	_mov_write_enda_tag_be
	jmp	LBB0_20
LBB0_8:
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	_AV_CODEC_ID_AMR_NB@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.9:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_mov_write_amr_tag
	jmp	LBB0_20
LBB0_10:
	movq	_AV_CODEC_ID_AC3@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.11:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_mov_write_ac3_tag
	jmp	LBB0_20
LBB0_12:
	movq	_AV_CODEC_ID_EAC3@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.13:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_mov_write_eac3_tag
	jmp	LBB0_20
LBB0_14:
	movq	_AV_CODEC_ID_ALAC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_16
## %bb.15:
	cmpq	(%r13), %rax
	je	LBB0_16
## %bb.17:
	movq	_AV_CODEC_ID_ADPCM_MS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_19
## %bb.18:
	movq	_AV_CODEC_ID_ADPCM_IMA_WAV@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_20
LBB0_19:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_mov_write_ms_tag
	jmp	LBB0_20
LBB0_16:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_mov_write_extradata_tag
LBB0_20:
	movq	%rbx, %rdi
	movl	$8, %esi
	callq	_avio_wb32
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_avio_wb32
	movq	%rbx, %rdi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_update_size                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wave"

	.comm	_AV_CODEC_ID_QDM2,8,3           ## @AV_CODEC_ID_QDM2
L_.str.1:                               ## @.str.1
	.asciz	"frma"

	.comm	_AV_CODEC_ID_AAC,8,3            ## @AV_CODEC_ID_AAC
L_.str.2:                               ## @.str.2
	.asciz	"mp4a"

	.comm	_AV_CODEC_ID_AMR_NB,8,3         ## @AV_CODEC_ID_AMR_NB
	.comm	_AV_CODEC_ID_AC3,8,3            ## @AV_CODEC_ID_AC3
	.comm	_AV_CODEC_ID_EAC3,8,3           ## @AV_CODEC_ID_EAC3
	.comm	_AV_CODEC_ID_ALAC,8,3           ## @AV_CODEC_ID_ALAC
	.comm	_AV_CODEC_ID_ADPCM_MS,8,3       ## @AV_CODEC_ID_ADPCM_MS
	.comm	_AV_CODEC_ID_ADPCM_IMA_WAV,8,3  ## @AV_CODEC_ID_ADPCM_IMA_WAV
	.no_dead_strip	_mov_write_wave_tag
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mov_write_wave_tag
_mov_write_wave_tag:                    ; @mov_write_wave_tag
	.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, x2
	mov	x19, x1
	mov	x22, x0
	mov	x0, x1
	bl	_avio_tell
	mov	x20, x0
	mov	x0, x19
	mov	w1, #0
	bl	_avio_wb32
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ffio_wfourcc
	ldr	x8, [x21]
	ldr	x0, [x8]
Lloh2:
	adrp	x23, _AV_CODEC_ID_QDM2@GOTPAGE
Lloh3:
	ldr	x23, [x23, _AV_CODEC_ID_QDM2@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x0, x8
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #12
	bl	_avio_wb32
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_ffio_wfourcc
	ldr	w1, [x21, #8]
	mov	x0, x19
	bl	_avio_wl32
	ldr	x8, [x21]
	ldr	x0, [x8]
LBB0_2:
Lloh6:
	adrp	x8, _AV_CODEC_ID_AAC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_CODEC_ID_AAC@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x19
	mov	w1, #12
	bl	_avio_wb32
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_ffio_wfourcc
	mov	x0, x19
	mov	w1, #0
	bl	_avio_wb32
	mov	x0, x19
	mov	x1, x21
	bl	_mov_write_esds_tag
	b	LBB0_20
LBB0_4:
	bl	_mov_pcm_le_gt16
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_mov_write_enda_tag
	b	LBB0_20
LBB0_6:
	ldr	x8, [x21]
	ldr	x0, [x8]
	bl	_mov_pcm_be_gt16
	cbz	x0, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_mov_write_enda_tag_be
	b	LBB0_20
LBB0_8:
	ldr	x8, [x21]
	ldr	x8, [x8]
Lloh11:
	adrp	x9, _AV_CODEC_ID_AMR_NB@GOTPAGE
Lloh12:
	ldr	x9, [x9, _AV_CODEC_ID_AMR_NB@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.9:
	mov	x0, x19
	mov	x1, x21
	bl	_mov_write_amr_tag
	b	LBB0_20
LBB0_10:
Lloh14:
	adrp	x9, _AV_CODEC_ID_AC3@GOTPAGE
Lloh15:
	ldr	x9, [x9, _AV_CODEC_ID_AC3@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.11:
	mov	x0, x22
	mov	x1, x19
	mov	x2, x21
	bl	_mov_write_ac3_tag
	b	LBB0_20
LBB0_12:
Lloh17:
	adrp	x9, _AV_CODEC_ID_EAC3@GOTPAGE
Lloh18:
	ldr	x9, [x9, _AV_CODEC_ID_EAC3@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.13:
	mov	x0, x22
	mov	x1, x19
	mov	x2, x21
	bl	_mov_write_eac3_tag
	b	LBB0_20
LBB0_14:
Lloh20:
	adrp	x9, _AV_CODEC_ID_ALAC@GOTPAGE
Lloh21:
	ldr	x9, [x9, _AV_CODEC_ID_ALAC@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_19
; %bb.15:
	ldr	x9, [x23]
	cmp	x8, x9
	b.eq	LBB0_19
; %bb.16:
Lloh23:
	adrp	x9, _AV_CODEC_ID_ADPCM_MS@GOTPAGE
Lloh24:
	ldr	x9, [x9, _AV_CODEC_ID_ADPCM_MS@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_18
; %bb.17:
Lloh26:
	adrp	x9, _AV_CODEC_ID_ADPCM_IMA_WAV@GOTPAGE
Lloh27:
	ldr	x9, [x9, _AV_CODEC_ID_ADPCM_IMA_WAV@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_20
LBB0_18:
	mov	x0, x22
	mov	x1, x19
	mov	x2, x21
	bl	_mov_write_ms_tag
	b	LBB0_20
LBB0_19:
	mov	x0, x19
	mov	x1, x21
	bl	_mov_write_extradata_tag
LBB0_20:
	mov	x0, x19
	mov	w1, #8
	bl	_avio_wb32
	mov	x0, x19
	mov	w1, #0
	bl	_avio_wb32
	mov	x0, x19
	mov	x1, x20
	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	_update_size
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wave"

	.comm	_AV_CODEC_ID_QDM2,8,3           ; @AV_CODEC_ID_QDM2
l_.str.1:                               ; @.str.1
	.asciz	"frma"

	.comm	_AV_CODEC_ID_AAC,8,3            ; @AV_CODEC_ID_AAC
l_.str.2:                               ; @.str.2
	.asciz	"mp4a"

	.comm	_AV_CODEC_ID_AMR_NB,8,3         ; @AV_CODEC_ID_AMR_NB
	.comm	_AV_CODEC_ID_AC3,8,3            ; @AV_CODEC_ID_AC3
	.comm	_AV_CODEC_ID_EAC3,8,3           ; @AV_CODEC_ID_EAC3
	.comm	_AV_CODEC_ID_ALAC,8,3           ; @AV_CODEC_ID_ALAC
	.comm	_AV_CODEC_ID_ADPCM_MS,8,3       ; @AV_CODEC_ID_ADPCM_MS
	.comm	_AV_CODEC_ID_ADPCM_IMA_WAV,8,3  ; @AV_CODEC_ID_ADPCM_IMA_WAV
	.no_dead_strip	_mov_write_wave_tag
.subsections_via_symbols
