	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mov_write_chan_tag
_mov_write_chan_tag:                    ## @mov_write_chan_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, %rbx
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	%rsi, %rdi
	callq	_avio_tell
	movl	%eax, %r14d
	movq	8(%rbx), %rax
	movl	(%rax), %esi
	movl	4(%rax), %edi
	leaq	-44(%rbp), %rdx
	callq	_ff_mov_get_channel_layout_tag
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	%eax, %r15d
	xorl	%eax, %eax
	cmpq	$0, (%rbx)
	jne	LBB0_4
## %bb.3:
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_avio_wb32
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_ffio_wfourcc
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_avio_w8
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_avio_wb24
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_avio_wb32
	movl	-44(%rbp), %esi
	movq	%r13, %rdi
	callq	_avio_wb32
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_avio_wb32
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_update_size
	jmp	LBB0_4
LBB0_1:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	callq	_av_log
	xorl	%eax, %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"not writing 'chan' tag due to lack of channel information\n"

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

	.no_dead_strip	_mov_write_chan_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_chan_tag
_mov_write_chan_tag:                    ; @mov_write_chan_tag
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x23, x2
	mov	x19, x1
	mov	x22, x0
	mov	x0, x1
	bl	_avio_tell
	mov	x20, x0
	ldr	x8, [x23, #8]
	ldp	w1, w0, [x8]
	add	x2, sp, #12
	bl	_ff_mov_get_channel_layout_tag
	cbz	w0, LBB0_3
; %bb.1:
	ldr	x8, [x23]
	cbz	x8, LBB0_4
; %bb.2:
	mov	w0, #0
	b	LBB0_5
LBB0_3:
Lloh0:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x22
	bl	_av_log
	mov	w0, #0
	b	LBB0_5
LBB0_4:
	mov	x21, x0
	mov	x0, x19
	mov	w1, #0
	bl	_avio_wb32
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_ffio_wfourcc
	mov	x0, x19
	mov	w1, #0
	bl	_avio_w8
	mov	x0, x19
	mov	w1, #0
	bl	_avio_wb24
	mov	x0, x19
	mov	x1, x21
	bl	_avio_wb32
	ldr	w1, [sp, #12]
	mov	x0, x19
	bl	_avio_wb32
	mov	x0, x19
	mov	w1, #0
	bl	_avio_wb32
	mov	x0, x19
	mov	x1, x20
	bl	_update_size
LBB0_5:
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"not writing 'chan' tag due to lack of channel information\n"

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

	.no_dead_strip	_mov_write_chan_tag
.subsections_via_symbols
