	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function sws_setColorspaceDetails
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_sws_setColorspaceDetails
	.p2align	4, 0x90
_sws_setColorspaceDetails:              ## @sws_setColorspaceDetails
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -52(%rbp)                 ## 4-byte Spill
	movl	%r8d, -56(%rbp)                 ## 4-byte Spill
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movl	%edx, %ebx
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movl	24(%rbp), %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	16(%rbp), %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ## kill: def $al killed $al killed $rax
	movb	%al, -45(%rbp)                  ## 1-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=2
	movq	%r15, %rdi
	callq	_ff_sws_init_range_convert
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=2
	movq	%r14, %rdi
	callq	_av_get_bits_per_pixel
	movq	%rax, 120(%r15)
	movq	%r13, %rdi
	callq	_av_get_bits_per_pixel
	movq	%rax, 112(%r15)
	movq	48(%r15), %rax
	movq	80(%r15), %rcx
	movq	(%rcx,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_20
LBB0_4:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rdi, %r15
	callq	_handle_formats
	movl	72(%r15), %edi
	callq	_av_pix_fmt_desc_get
	movq	%rax, %r14
	movl	100(%r15), %edi
	callq	_av_pix_fmt_desc_get
	movq	%rax, %r13
	movl	72(%r15), %edi
	callq	_isYUV
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	72(%r15), %edi
	callq	_isGray
	testq	%rax, %rax
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	movl	$0, %ecx
	cmovel	%ecx, %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=2
	movl	100(%r15), %edi
	callq	_isYUV
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=2
	cmpl	%ebx, (%r15)
	je	LBB0_9
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=2
	movl	100(%r15), %edi
	callq	_isGray
	testq	%rax, %rax
	movl	$0, %eax
	cmovel	%eax, %ebx
	cmpl	%ebx, (%r15)
	jne	LBB0_15
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=2
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, 4(%r15)
	jne	LBB0_15
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=2
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, 8(%r15)
	jne	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=2
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	cmpl	%eax, 12(%r15)
	jne	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=2
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpl	%eax, 16(%r15)
	jne	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=2
	movq	24(%r15), %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	$16, %edx
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=2
	movq	32(%r15), %rdi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movl	$16, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_19
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=2
	xorl	%r12d, %r12d
LBB0_16:                                ##   in Loop: Header=BB0_4 Depth=2
	movq	24(%r15), %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	$16, %edx
	callq	_memmove
	movq	32(%r15), %rdi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movl	$16, %edx
	callq	_memmove
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 8(%r15)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, 12(%r15)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, 16(%r15)
	movl	%ebx, (%r15)
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%r15)
	testb	%r12b, %r12b
	jne	LBB0_3
## %bb.17:                              ##   in Loop: Header=BB0_4 Depth=2
	cmpl	$8, 40(%r15)
	je	LBB0_2
## %bb.18:                              ##   in Loop: Header=BB0_4 Depth=2
	movl	100(%r15), %edi
	callq	_isYUV
	testq	%rax, %rax
	jne	LBB0_3
	jmp	LBB0_2
LBB0_19:                                ##   in Loop: Header=BB0_4 Depth=2
	movb	$1, %r12b
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_1 Depth=1
	testb	%r12b, %r12b
	jne	LBB0_53
## %bb.21:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	72(%r15), %edi
	callq	_isYUV
	testq	%rax, %rax
	jne	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	72(%r15), %edi
	callq	_isGray
	testq	%rax, %rax
	je	LBB0_48
LBB0_23:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	100(%r15), %edi
	callq	_isYUV
	testq	%rax, %rax
	jne	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	100(%r15), %edi
	callq	_isGray
	testq	%rax, %rax
	je	LBB0_48
LBB0_25:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	80(%r15), %rax
	cmpq	$0, (%rax)
	jne	LBB0_43
## %bb.26:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	24(%r15), %rsi
	movq	32(%r15), %rdi
	movl	$16, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_43
## %bb.27:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	56(%r15), %r12d
	testl	%r12d, %r12d
	je	LBB0_43
## %bb.28:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	$-1, -44(%rbp)                  ## 4-byte Folded Spill
	movl	60(%r15), %r13d
	testl	%r13d, %r13d
	je	LBB0_54
## %bb.29:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	64(%r15), %r14d
	testl	%r14d, %r14d
	je	LBB0_54
## %bb.30:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	68(%r15), %eax
	testl	%eax, %eax
	je	LBB0_54
## %bb.31:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	movq	_AV_LOG_VERBOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	leaq	L_.str(%rip), %rdx
	callq	_av_log
	movl	72(%r15), %edi
	callq	_isNBPS
	testq	%rax, %rax
	jne	LBB0_33
## %bb.32:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	72(%r15), %edi
	callq	_is16BPS
	testq	%rax, %rax
	je	LBB0_40
LBB0_33:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	100(%r15), %edi
	callq	_isALPHA
	testq	%rax, %rax
	je	LBB0_35
## %bb.34:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	72(%r15), %edi
	callq	_isALPHA
	movq	_AV_PIX_FMT_BGRA64@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	jne	LBB0_36
LBB0_35:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_AV_PIX_FMT_BGR48@GOTPCREL(%rip), %rcx
LBB0_36:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	(%rcx), %r8d
	movl	%r13d, %eax
	imull	%r12d, %eax
	movl	-84(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, %ecx
	imull	%r14d, %ecx
	cmpl	%ecx, %eax
	movl	%r13d, %ecx
	movl	%r12d, %r13d
	movl	%r14d, -100(%rbp)               ## 4-byte Spill
	cmovgl	%r14d, %r13d
	movl	%ecx, -104(%rbp)                ## 4-byte Spill
	movl	%ecx, %r14d
	cmovgl	%edx, %r14d
	movl	104(%r15), %esi
	movl	108(%r15), %edi
	movl	%r13d, %edx
	movl	%r14d, %ecx
	movl	%r8d, -108(%rbp)                ## 4-byte Spill
	movl	$64, %r9d
	callq	_av_image_alloc
	testl	%eax, %eax
	js	LBB0_47
## %bb.37:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	100(%r15), %edx
	movl	88(%r15), %eax
	movl	92(%r15), %r10d
	movl	%r12d, %edi
	movl	-104(%rbp), %esi                ## 4-byte Reload
	movl	%r13d, %ecx
	movl	%r14d, %r8d
	movl	-108(%rbp), %r12d               ## 4-byte Reload
	movl	%r12d, %r9d
	pushq	%rax
	pushq	%r10
	callq	_sws_alloc_set_opts
	addq	$16, %rsp
	movq	80(%r15), %rcx
	movq	%rax, (%rcx)
	movq	80(%r15), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_54
## %bb.38:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	96(%r15), %eax
	movl	%eax, 96(%rdi)
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_sws_init_context
	testl	%eax, %eax
	js	LBB0_47
## %bb.39:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	80(%r15), %rax
	movq	(%rax), %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	%ebx, %edx
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movl	-56(%rbp), %r8d                 ## 4-byte Reload
	movl	-52(%rbp), %r9d                 ## 4-byte Reload
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	callq	_sws_setColorspaceDetails
	addq	$16, %rsp
	movl	92(%r15), %eax
	movl	72(%r15), %r9d
	movl	88(%r15), %ecx
	subq	$32, %rsp
	movl	%ecx, 24(%rsp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rsp)
	movl	%eax, (%rsp)
	movl	%r13d, %edi
	movl	%r14d, %esi
	movl	%r12d, %edx
	movl	-100(%rbp), %ecx                ## 4-byte Reload
	movl	-84(%rbp), %r8d                 ## 4-byte Reload
	callq	_sws_getContext
	addq	$32, %rsp
	movq	80(%r15), %rcx
	movq	%rax, 8(%rcx)
	movq	80(%r15), %rax
	movq	8(%rax), %rdi
	movb	$1, %al
	movl	$65536, %ecx                    ## imm = 0x10000
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	movl	$65536, %ecx                    ## imm = 0x10000
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	testq	%rdi, %rdi
	jne	LBB0_1
	jmp	LBB0_54
LBB0_40:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	100(%r15), %edi
	callq	_isALPHA
	testq	%rax, %rax
	je	LBB0_42
## %bb.41:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	72(%r15), %edi
	callq	_isALPHA
	movq	_AV_PIX_FMT_BGRA@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	jne	LBB0_36
LBB0_42:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_AV_PIX_FMT_BGR24@GOTPCREL(%rip), %rcx
	jmp	LBB0_36
LBB0_43:
	movl	$-1, -44(%rbp)                  ## 4-byte Folded Spill
	jmp	LBB0_54
LBB0_47:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_54
LBB0_48:
	movl	72(%r15), %edi
	callq	_isYUV
	testq	%rax, %rax
	jne	LBB0_52
## %bb.49:
	movl	72(%r15), %edi
	callq	_isGray
	testq	%rax, %rax
	jne	LBB0_52
## %bb.50:
	movq	%r15, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	%ebx, %edx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movq	-72(%rbp), %r8                  ## 8-byte Reload
                                        ## kill: def $r8d killed $r8d killed $r8
	movq	-64(%rbp), %r9                  ## 8-byte Reload
                                        ## kill: def $r9d killed $r9d killed $r9
	callq	_ff_yuv2rgb_c_init_tables
	movq	_ARCH_PPC@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_52
## %bb.51:
	movq	%r15, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	movq	-64(%rbp), %r8                  ## 8-byte Reload
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_ff_yuv2rgb_init_tables_ppc
LBB0_52:
	movq	%r15, %rdi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	callq	_fill_rgb2yuv_table
LBB0_53:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_54:
	testb	$1, -45(%rbp)                   ## 1-byte Folded Reload
	movl	$0, %eax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmovnel	%eax, %ecx
	movl	%ecx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_VERBOSE,4,2             ## @AV_LOG_VERBOSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"YUV color matrix differs for YUV->YUV, using intermediate RGB to convert\n"

	.comm	_AV_PIX_FMT_BGRA64,4,2          ## @AV_PIX_FMT_BGRA64
	.comm	_AV_PIX_FMT_BGR48,4,2           ## @AV_PIX_FMT_BGR48
	.comm	_AV_PIX_FMT_BGRA,4,2            ## @AV_PIX_FMT_BGRA
	.comm	_AV_PIX_FMT_BGR24,4,2           ## @AV_PIX_FMT_BGR24
	.comm	_ARCH_PPC,8,3                   ## @ARCH_PPC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sws_setColorspaceDetails       ; -- Begin function sws_setColorspaceDetails
	.p2align	2
_sws_setColorspaceDetails:              ; @sws_setColorspaceDetails
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x25, x7
	mov	x24, x6
	mov	x23, x5
	mov	x19, x4
	str	x3, [sp, #40]                   ; 8-byte Folded Spill
	mov	x22, x2
	mov	x21, x1
	mov	w8, #0
	str	x1, [sp, #16]                   ; 8-byte Folded Spill
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	str	w8, [sp, #24]                   ; 4-byte Folded Spill
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=2
	mov	x0, x26
	bl	_ff_sws_init_range_convert
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=2
	mov	x0, x27
	bl	_av_get_bits_per_pixel
	str	x0, [x26, #120]
	mov	x0, x28
	bl	_av_get_bits_per_pixel
	str	x0, [x26, #112]
	ldr	x8, [x26, #80]
	ldr	x9, [x26, #48]
	ldr	x0, [x8, x9, lsl #3]
	cbz	x0, LBB0_20
LBB0_4:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x26, x0
	bl	_handle_formats
	ldr	w0, [x26, #72]
	bl	_av_pix_fmt_desc_get
	mov	x27, x0
	ldr	w0, [x26, #100]
	bl	_av_pix_fmt_desc_get
	mov	x28, x0
	ldr	w0, [x26, #72]
	bl	_isYUV
	cbnz	x0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	ldr	w0, [x26, #72]
	bl	_isGray
	cmp	x0, #0
	csel	w19, wzr, w19, eq
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=2
	ldr	w0, [x26, #100]
	bl	_isYUV
	cbnz	x0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=2
	ldr	w0, [x26, #100]
	bl	_isGray
	cmp	x0, #0
	csel	w22, wzr, w22, eq
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=2
	ldr	w8, [x26]
	cmp	w8, w22
	b.ne	LBB0_15
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=2
	ldr	w8, [x26, #4]
	cmp	w8, w19
	b.ne	LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=2
	ldr	w8, [x26, #8]
	cmp	w8, w23
	b.ne	LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=2
	ldr	w8, [x26, #12]
	cmp	w8, w24
	b.ne	LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=2
	ldr	w8, [x26, #16]
	cmp	w8, w25
	b.ne	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=2
	ldr	x0, [x26, #24]
	mov	x1, x21
	mov	w2, #16
	bl	_memcmp
	cbnz	x0, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=2
	ldr	x0, [x26, #32]
	ldr	x1, [sp, #40]                   ; 8-byte Folded Reload
	mov	w2, #16
	bl	_memcmp
	cbz	x0, LBB0_19
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=2
	mov	w20, #0
LBB0_16:                                ;   in Loop: Header=BB0_4 Depth=2
	ldr	x0, [x26, #24]
	mov	x1, x21
	mov	w2, #16
	bl	_memmove
	ldr	x0, [x26, #32]
	ldr	x1, [sp, #40]                   ; 8-byte Folded Reload
	mov	w2, #16
	bl	_memmove
	stp	w23, w24, [x26, #8]
	str	w25, [x26, #16]
	stp	w22, w19, [x26]
	tbnz	w20, #0, LBB0_3
; %bb.17:                               ;   in Loop: Header=BB0_4 Depth=2
	ldr	w8, [x26, #40]
	cmp	w8, #8
	b.eq	LBB0_2
; %bb.18:                               ;   in Loop: Header=BB0_4 Depth=2
	ldr	w0, [x26, #100]
	bl	_isYUV
	cbnz	x0, LBB0_3
	b	LBB0_2
LBB0_19:                                ;   in Loop: Header=BB0_4 Depth=2
	mov	w20, #1
	b	LBB0_16
LBB0_20:                                ;   in Loop: Header=BB0_1 Depth=1
	tbnz	w20, #0, LBB0_49
; %bb.21:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x26, #72]
	bl	_isYUV
	cbnz	x0, LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x26, #72]
	bl	_isGray
	cbz	x0, LBB0_44
LBB0_23:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x26, #100]
	bl	_isYUV
	cbnz	x0, LBB0_25
; %bb.24:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x26, #100]
	bl	_isGray
	cbz	x0, LBB0_44
LBB0_25:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x26, #80]
	ldr	x8, [x8]
	cbnz	x8, LBB0_43
; %bb.26:                               ;   in Loop: Header=BB0_1 Depth=1
	ldp	x1, x0, [x26, #24]
	mov	w2, #16
	bl	_memcmp
	cbz	x0, LBB0_43
; %bb.27:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	w20, [x26, #56]
	cbz	w20, LBB0_43
; %bb.28:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	w21, [x26, #60]
	cbz	w21, LBB0_43
; %bb.29:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	w28, [x26, #64]
	cbz	w28, LBB0_43
; %bb.30:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	w27, [x26, #68]
	cbz	w27, LBB0_43
; %bb.31:                               ;   in Loop: Header=BB0_1 Depth=1
Lloh0:
	adrp	x8, _AV_LOG_VERBOSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_VERBOSE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x26
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
	ldr	w0, [x26, #72]
	bl	_isNBPS
	cbnz	x0, LBB0_33
; %bb.32:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x26, #72]
	bl	_is16BPS
	cbz	x0, LBB0_40
LBB0_33:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x26, #100]
	bl	_isALPHA
	cbz	x0, LBB0_35
; %bb.34:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x26, #72]
	bl	_isALPHA
Lloh5:
	adrp	x8, _AV_PIX_FMT_BGRA64@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AV_PIX_FMT_BGRA64@GOTPAGEOFF]
	cbnz	x0, LBB0_36
LBB0_35:                                ;   in Loop: Header=BB0_1 Depth=1
Lloh7:
	adrp	x8, _AV_PIX_FMT_BGR48@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AV_PIX_FMT_BGR48@GOTPAGEOFF]
LBB0_36:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w4, [x8]
	mul	w8, w21, w20
	mul	w9, w27, w28
	cmp	w8, w9
	stp	w28, w27, [sp, #28]             ; 8-byte Folded Spill
	csel	w2, w28, w20, gt
	csel	w28, w27, w21, gt
	ldp	w1, w0, [x26, #104]
	str	w2, [sp, #36]                   ; 4-byte Folded Spill
	mov	x3, x28
	mov	x27, x4
	mov	w5, #64
	bl	_av_image_alloc
	tbnz	w0, #31, LBB0_50
; %bb.37:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	w2, [x26, #100]
	ldp	w7, w6, [x26, #88]
	mov	x0, x20
	mov	x1, x21
	ldr	w21, [sp, #36]                  ; 4-byte Folded Reload
	mov	x3, x21
	mov	x4, x28
	mov	x5, x27
	bl	_sws_alloc_set_opts
	ldr	x8, [x26, #80]
	str	x0, [x8]
	ldr	x8, [x26, #80]
	ldr	x0, [x8]
	cbz	x0, LBB0_43
; %bb.38:                               ;   in Loop: Header=BB0_1 Depth=1
	mov	x20, x27
	ldr	w8, [x26, #96]
	str	w8, [x0, #96]
	mov	x1, #0
	mov	x2, #0
	bl	_sws_init_context
	tbnz	w0, #31, LBB0_50
; %bb.39:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x26, #80]
	ldr	x0, [x8]
	mov	x27, x28
	mov	x28, x21
	ldr	x21, [sp, #16]                  ; 8-byte Folded Reload
	mov	x1, x21
	mov	x2, x22
	ldr	x3, [sp, #40]                   ; 8-byte Folded Reload
	mov	x4, x19
	mov	x5, x23
	mov	x6, x24
	mov	x7, x25
	bl	_sws_setColorspaceDetails
	ldr	w5, [x26, #72]
	ldp	w8, w6, [x26, #88]
	str	w8, [sp, #8]
	str	xzr, [sp]
	mov	x0, x28
	mov	x1, x27
	mov	x2, x20
	ldp	w3, w4, [sp, #28]               ; 8-byte Folded Reload
	mov	x7, #0
	bl	_sws_getContext
	mov	w23, #0
	ldr	x8, [x26, #80]
	str	x0, [x8, #8]
	ldr	x8, [x26, #80]
	ldr	x0, [x8, #8]
	mov	w8, #1
	mov	w24, #65536
	mov	w25, #65536
	cbnz	x0, LBB0_1
	b	LBB0_43
LBB0_40:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x26, #100]
	bl	_isALPHA
	cbz	x0, LBB0_42
; %bb.41:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x26, #72]
	bl	_isALPHA
Lloh9:
	adrp	x8, _AV_PIX_FMT_BGRA@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AV_PIX_FMT_BGRA@GOTPAGEOFF]
	cbnz	x0, LBB0_36
LBB0_42:                                ;   in Loop: Header=BB0_1 Depth=1
Lloh11:
	adrp	x8, _AV_PIX_FMT_BGR24@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AV_PIX_FMT_BGR24@GOTPAGEOFF]
	b	LBB0_36
LBB0_43:
	mov	w0, #-1
	b	LBB0_50
LBB0_44:
	ldr	w0, [x26, #72]
	bl	_isYUV
	cbnz	x0, LBB0_48
; %bb.45:
	ldr	w0, [x26, #72]
	bl	_isGray
	cbnz	x0, LBB0_48
; %bb.46:
	mov	x0, x26
	mov	x1, x21
	mov	x2, x22
	mov	x3, x23
	mov	x4, x24
	mov	x5, x25
	bl	_ff_yuv2rgb_c_init_tables
Lloh13:
	adrp	x8, _ARCH_PPC@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ARCH_PPC@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cbz	x8, LBB0_48
; %bb.47:
	mov	x0, x26
	mov	x1, x21
	mov	x2, x23
	mov	x3, x24
	mov	x4, x25
	bl	_ff_yuv2rgb_init_tables_ppc
LBB0_48:
	mov	x0, x26
	ldr	x1, [sp, #40]                   ; 8-byte Folded Reload
	mov	x2, x19
	bl	_fill_rgb2yuv_table
LBB0_49:
	mov	w0, #0
LBB0_50:
	ldr	w8, [sp, #24]                   ; 4-byte Folded Reload
	tst	w8, #0x1
	csel	w0, wzr, w0, ne
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_VERBOSE,4,2             ; @AV_LOG_VERBOSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"YUV color matrix differs for YUV->YUV, using intermediate RGB to convert\n"

	.comm	_AV_PIX_FMT_BGRA64,4,2          ; @AV_PIX_FMT_BGRA64
	.comm	_AV_PIX_FMT_BGR48,4,2           ; @AV_PIX_FMT_BGR48
	.comm	_AV_PIX_FMT_BGRA,4,2            ; @AV_PIX_FMT_BGRA
	.comm	_AV_PIX_FMT_BGR24,4,2           ; @AV_PIX_FMT_BGR24
	.comm	_ARCH_PPC,8,3                   ; @ARCH_PPC
.subsections_via_symbols
