	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_color_frame                 ## -- Begin function ff_color_frame
	.p2align	4, 0x90
_ff_color_frame:                        ## @ff_color_frame
	.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	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movl	24(%rdi), %edi
	callq	_av_pix_fmt_desc_get
	movq	%rax, %rbx
	movq	_AV_PIX_FMT_FLAG_PLANAR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	(%rbx), %edi
	callq	_av_assert0
	cmpl	$0, 4(%rbx)
	jle	LBB0_12
## %bb.1:
	xorl	%r12d, %r12d
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movslq	4(%rbx), %rax
	cmpq	%rax, %r12
	jge	LBB0_12
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
                                        ##     Child Loop BB0_10 Depth 2
	movq	16(%r13), %rax
	movq	(%rax,%r12,8), %r15
	leal	-1(%r12), %eax
	movl	(%r13), %edi
	cmpl	$1, %eax
	ja	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	20(%rbx), %esi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_AV_CEIL_RSHIFT
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	4(%r13), %edi
	movl	16(%rbx), %esi
	callq	_AV_CEIL_RSHIFT
	movl	%eax, %r14d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	4(%r13), %r14d
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx), %rax
	cmpl	$8, (%rax)
	jle	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r12,4), %eax
	movl	%eax, (%r15)
	leaq	8(%r15), %rdi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leal	-2(%rax), %edx
	movl	$2, %esi
	callq	_av_memcpy_backptr
	cmpl	$2, %r14d
	jl	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r13), %rax
	movslq	(%rax,%r12,4), %rax
	leaq	(%r15,%rax,4), %rbx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	decl	%r14d
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	16(%r13), %rax
	movq	(%rax,%r12,8), %rsi
	movq	%rbx, %rdi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	movq	8(%r13), %rax
	movslq	(%rax,%r12,4), %rax
	leaq	(%rbx,%rax,4), %rbx
	decl	%r14d
	jne	LBB0_10
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	testl	%r14d, %r14d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jle	LBB0_11
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r12,4), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_memset
	movq	8(%r13), %rax
	movslq	(%rax,%r12,4), %rax
	leaq	(%r15,%rax,4), %r15
	decl	%r14d
	jne	LBB0_7
	jmp	LBB0_11
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_PIX_FMT_FLAG_PLANAR,4,2     ## @AV_PIX_FMT_FLAG_PLANAR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_color_frame                 ; -- Begin function ff_color_frame
	.p2align	2
_ff_color_frame:                        ; @ff_color_frame
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x0, #24]
	bl	_av_pix_fmt_desc_get
	mov	x21, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _AV_PIX_FMT_FLAG_PLANAR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AV_PIX_FMT_FLAG_PLANAR@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w0, w9, w8
	bl	_av_assert0
	ldr	w8, [x21, #4]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.1:
	mov	x25, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x25, x25, #1
	ldrsw	x8, [x21, #4]
	cmp	x25, x8
	b.ge	LBB0_12
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
                                        ;     Child Loop BB0_9 Depth 2
	ldr	x8, [x20, #16]
	ldr	x22, [x8, x25, lsl #3]
	sub	w8, w25, #1
	ldr	w23, [x20]
	cmp	w8, #1
	b.hi	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x21, #20]
	mov	x0, x23
	bl	_AV_CEIL_RSHIFT
	mov	x23, x0
	ldr	w0, [x20, #4]
	ldr	w1, [x21, #16]
	bl	_AV_CEIL_RSHIFT
	mov	x24, x0
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w24, [x20, #4]
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21, #8]
	ldr	w8, [x8]
	cmp	w8, #8
	b.le	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19, x25, lsl #2]
	mov	x0, x22
	str	w8, [x0], #8
	sub	w2, w23, #2
	mov	w1, #2
	bl	_av_memcpy_backptr
	cmp	w24, #2
	b.lt	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #8]
	ldrsw	x8, [x8, x25, lsl #2]
	add	x22, x22, x8, lsl #2
	lsl	w23, w23, #1
	sub	w24, w24, #1
LBB0_9:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x20, #16]
	ldr	x1, [x8, x25, lsl #3]
	mov	x0, x22
	mov	x2, x23
	bl	_memcpy
	ldr	x8, [x20, #8]
	ldrsw	x8, [x8, x25, lsl #2]
	add	x22, x22, x8, lsl #2
	subs	w24, w24, #1
	b.ne	LBB0_9
	b	LBB0_2
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w24, #1
	b.lt	LBB0_2
LBB0_11:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	x26, x25, #2
	ldr	w1, [x19, x26]
	mov	x0, x22
	mov	x2, x23
	bl	_memset
	ldr	x8, [x20, #8]
	ldrsw	x8, [x8, x26]
	add	x22, x22, x8, lsl #2
	subs	w24, w24, #1
	b.ne	LBB0_11
	b	LBB0_2
LBB0_12:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_PIX_FMT_FLAG_PLANAR,4,2     ; @AV_PIX_FMT_FLAG_PLANAR
.subsections_via_symbols
