	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xyz12Torgb48
_xyz12Torgb48:                          ## @xyz12Torgb48
	.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	%r8d, %ebx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %r12
	movl	24(%rdi), %edi
	callq	_av_pix_fmt_desc_get
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	%ebx, -68(%rbp)                 ## 4-byte Spill
	testl	%ebx, %ebx
	jle	LBB0_12
## %bb.1:
	movslq	-44(%rbp), %rax                 ## 4-byte Folded Reload
	shlq	$2, %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	incl	%ecx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addq	-96(%rbp), %rax                 ## 8-byte Folded Reload
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	cmpl	-68(%rbp), %ecx                 ## 4-byte Folded Reload
	je	LBB0_12
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	cmpl	$3, -44(%rbp)                   ## 4-byte Folded Reload
	jl	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$2, %edx
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=2
	callq	_AV_WL16
	leaq	(%rbx,%r14), %rdi
	addq	$4, %rdi
	movq	16(%r12), %rax
	movslq	-52(%rbp), %rcx                 ## 4-byte Folded Reload
	movl	(%rax,%rcx,4), %esi
	shll	$4, %esi
	callq	_AV_WL16
	leaq	(%rbx,%r14), %rdi
	addq	$8, %rdi
	movq	16(%r12), %rax
	movslq	%r15d, %rcx
	movl	(%rax,%rcx,4), %esi
	shll	$4, %esi
	callq	_AV_WL16
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=2
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	addl	$3, %edx
	addq	$12, %r14
	cmpl	-44(%rbp), %edx                 ## 4-byte Folded Reload
	jge	LBB0_11
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	_AV_PIX_FMT_FLAG_BE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	(%r14,%r13), %rdi
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	testl	%eax, (%rcx)
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	callq	_AV_RB16
	movl	%eax, %r15d
	leaq	(%r14,%r13), %rdi
	addq	$4, %rdi
	callq	_AV_RB16
	movl	%eax, %ebx
	leaq	(%r14,%r13), %rdi
	addq	$8, %rdi
	callq	_AV_RB16
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=2
	callq	_AV_RL16
	movl	%eax, %r15d
	leaq	(%r14,%r13), %rdi
	addq	$4, %rdi
	callq	_AV_RL16
	movl	%eax, %ebx
	leaq	(%r14,%r13), %rdi
	addq	$8, %rdi
	callq	_AV_RL16
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=2
	sarl	$4, %r15d
	movslq	%r15d, %rcx
	movq	(%r12), %rdi
	movq	8(%r12), %r8
	movl	(%rdi,%rcx,4), %ecx
	sarl	$4, %ebx
	movslq	%ebx, %rdx
	movl	(%rdi,%rdx,4), %edx
	sarl	$4, %eax
	cltq
	movl	(%rdi,%rax,4), %r15d
	movq	(%r8), %rax
	movq	8(%r8), %rbx
	movl	(%rax), %edi
	imull	%ecx, %edi
	movl	4(%rax), %esi
	imull	%edx, %esi
	addl	%edi, %esi
	movl	8(%rax), %edi
	imull	%r15d, %edi
	addl	%esi, %edi
	sarl	$12, %edi
	movl	(%rbx), %eax
	imull	%ecx, %eax
	movl	4(%rbx), %esi
	imull	%edx, %esi
	addl	%eax, %esi
	movl	8(%rbx), %ebx
	imull	%r15d, %ebx
	addl	%esi, %ebx
	movq	16(%r8), %rax
	imull	(%rax), %ecx
	sarl	$12, %ebx
	imull	4(%rax), %edx
	addl	%ecx, %edx
	imull	8(%rax), %r15d
	addl	%edx, %r15d
	sarl	$12, %r15d
	movl	$12, %esi
	callq	_av_clip_uintp2
	movl	%eax, %r13d
	movl	%ebx, %edi
	movl	$12, %esi
	callq	_av_clip_uintp2
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	%r15d, %edi
	movl	$12, %esi
	callq	_av_clip_uintp2
	movl	%eax, %r15d
	movq	_AV_PIX_FMT_FLAG_BE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	leaq	(%rbx,%r14), %rdi
	movq	16(%r12), %rcx
	movslq	%r13d, %rdx
	movl	(%rcx,%rdx,4), %esi
	shll	$4, %esi
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=2
	callq	_AV_WB16
	leaq	(%rbx,%r14), %rdi
	addq	$4, %rdi
	movq	16(%r12), %rax
	movslq	-52(%rbp), %rcx                 ## 4-byte Folded Reload
	movl	(%rax,%rcx,4), %esi
	shll	$4, %esi
	callq	_AV_WB16
	leaq	(%rbx,%r14), %rdi
	addq	$8, %rdi
	movq	16(%r12), %rax
	movslq	%r15d, %rcx
	movl	(%rax,%rcx,4), %esi
	shll	$4, %esi
	callq	_AV_WB16
	jmp	LBB0_10
LBB0_12:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_PIX_FMT_FLAG_BE,4,2         ## @AV_PIX_FMT_FLAG_BE
	.no_dead_strip	_xyz12Torgb48
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xyz12Torgb48
_xyz12Torgb48:                          ; @xyz12Torgb48
	.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	x19, x4
	mov	x20, x3
	stp	x1, x2, [sp, #32]               ; 16-byte Folded Spill
	mov	x23, x0
	ldr	w0, [x0, #24]
	bl	_av_pix_fmt_desc_get
	str	w19, [sp, #16]                  ; 4-byte Folded Spill
	cmp	w19, #1
	b.lt	LBB0_12
; %bb.1:
	mov	x24, x0
	str	xzr, [sp, #24]                  ; 8-byte Folded Spill
	mov	w9, #0
	sbfiz	x8, x20, #2, #32
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
Lloh0:
	adrp	x19, _AV_PIX_FMT_FLAG_BE@GOTPAGE
Lloh1:
	ldr	x19, [x19, _AV_PIX_FMT_FLAG_BE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [sp, #20]                   ; 4-byte Folded Reload
	add	w9, w9, #1
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldr	x10, [sp, #8]                   ; 8-byte Folded Reload
	add	x8, x8, x10
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	ldr	w8, [sp, #16]                   ; 4-byte Folded Reload
	cmp	w9, w8
	b.eq	LBB0_12
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	str	w9, [sp, #20]                   ; 4-byte Folded Spill
	cmp	w20, #3
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w21, #2
	ldr	x22, [sp, #24]                  ; 8-byte Folded Reload
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=2
	bl	_AV_WL16
	add	x0, x26, #4
	ldr	x8, [x23, #16]
	ldr	w8, [x8, w27, sxtw #2]
	lsl	w1, w8, #4
	bl	_AV_WL16
	add	x0, x26, #8
	ldr	x8, [x23, #16]
	ldr	w8, [x8, w25, sxtw #2]
	lsl	w1, w8, #4
	bl	_AV_WL16
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	w21, w21, #3
	add	x22, x22, #12
	cmp	w21, w20
	b.ge	LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [x24]
	ldr	w9, [x19]
	ldr	x10, [sp, #40]                  ; 8-byte Folded Reload
	add	x27, x10, x22
	mov	x0, x27
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	bl	_AV_RB16
	mov	x25, x0
	add	x0, x27, #4
	bl	_AV_RB16
	mov	x26, x0
	add	x0, x27, #8
	bl	_AV_RB16
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=2
	bl	_AV_RL16
	mov	x25, x0
	add	x0, x27, #4
	bl	_AV_RL16
	mov	x26, x0
	add	x0, x27, #8
	bl	_AV_RL16
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=2
	asr	w8, w25, #4
	ldp	x9, x10, [x23]
	ldr	w8, [x9, w8, sxtw #2]
	asr	w11, w26, #4
	ldr	w11, [x9, w11, sxtw #2]
	asr	w12, w0, #4
	ldr	w9, [x9, w12, sxtw #2]
	ldp	x12, x13, [x10]
	ldp	w14, w15, [x12]
	mul	w14, w14, w8
	madd	w14, w15, w11, w14
	ldr	w12, [x12, #8]
	madd	w12, w12, w9, w14
	asr	w0, w12, #12
	ldp	w12, w14, [x13]
	mul	w12, w12, w8
	madd	w12, w14, w11, w12
	ldr	w13, [x13, #8]
	madd	w12, w13, w9, w12
	asr	w25, w12, #12
	ldr	x10, [x10, #16]
	ldp	w12, w13, [x10]
	mul	w8, w12, w8
	madd	w8, w13, w11, w8
	ldr	w10, [x10, #8]
	madd	w8, w10, w9, w8
	asr	w26, w8, #12
	mov	w1, #12
	bl	_av_clip_uintp2
	mov	x28, x0
	mov	x0, x25
	mov	w1, #12
	bl	_av_clip_uintp2
	mov	x27, x0
	mov	x0, x26
	mov	w1, #12
	bl	_av_clip_uintp2
	mov	x25, x0
	ldr	w8, [x24]
	ldr	w9, [x19]
	ldr	x10, [sp, #32]                  ; 8-byte Folded Reload
	add	x26, x10, x22
	ldr	x10, [x23, #16]
	ldr	w10, [x10, w28, sxtw #2]
	lsl	w1, w10, #4
	mov	x0, x26
	tst	w9, w8
	b.eq	LBB0_5
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=2
	bl	_AV_WB16
	add	x0, x26, #4
	ldr	x8, [x23, #16]
	ldr	w8, [x8, w27, sxtw #2]
	lsl	w1, w8, #4
	bl	_AV_WB16
	add	x0, x26, #8
	ldr	x8, [x23, #16]
	ldr	w8, [x8, w25, sxtw #2]
	lsl	w1, w8, #4
	bl	_AV_WB16
	b	LBB0_6
LBB0_12:
	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 AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_PIX_FMT_FLAG_BE,4,2         ; @AV_PIX_FMT_FLAG_BE
	.no_dead_strip	_xyz12Torgb48
.subsections_via_symbols
