	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_mov_write_chan              ## -- Begin function ff_mov_write_chan
	.p2align	4, 0x90
_ff_mov_write_chan:                     ## @ff_mov_write_chan
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_mov_channel_layout@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.1:
	addq	$16, %rax
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rbx, %rcx
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rax), %rcx
	addq	$16, %rax
	testq	%rcx, %rcx
	jne	LBB0_2
	jmp	LBB0_4
LBB0_5:
	movq	-8(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.6:
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_4:
	movl	$65536, %esi                    ## imm = 0x10000
LBB0_7:
	movq	%r14, %rdi
	callq	_avio_wb32
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_avio_wb32
	movq	%r14, %rdi
	xorl	%esi, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_avio_wb32                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_mov_channel_layout,8,3         ## @mov_channel_layout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_mov_write_chan              ; -- Begin function ff_mov_write_chan
	.p2align	2
_ff_mov_write_chan:                     ; @ff_mov_write_chan
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _mov_channel_layout@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mov_channel_layout@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x8]
	cbz	x9, LBB0_6
; %bb.1:
	add	x8, x8, #16
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x9, x20
	b.eq	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x9, [x8], #16
	cbnz	x9, LBB0_2
	b	LBB0_6
LBB0_4:
	ldur	x1, [x8, #-8]
	cbz	x1, LBB0_6
; %bb.5:
	mov	x20, #0
	b	LBB0_7
LBB0_6:
	mov	w1, #65536
LBB0_7:
	mov	x0, x19
	bl	_avio_wb32
	mov	x0, x19
	mov	x1, x20
	bl	_avio_wb32
	mov	x0, x19
	mov	x1, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_avio_wb32
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_mov_channel_layout,8,3         ; @mov_channel_layout
.subsections_via_symbols
