	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hScale16To19_c
_hScale16To19_c:                        ## @hScale16To19_c
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -120(%rbp)                 ## 8-byte Spill
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, %r12d
	movq	%rsi, -136(%rbp)                ## 8-byte Spill
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	callq	_av_pix_fmt_desc_get
	movq	%rax, %r14
	movq	8(%rax), %rax
	movl	(%rax), %r15d
	movq	(%rbx), %rdi
	callq	_isAnyRGB
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	(%rbx), %rax
	movq	_AV_PIX_FMT_PAL8@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
LBB0_2:
	movq	8(%r14), %rax
	movl	$9, -44(%rbp)                   ## 4-byte Folded Spill
	cmpl	$16, (%rax)
	jl	LBB0_4
LBB0_3:
	addl	$-5, %r15d
	movq	_AV_PIX_FMT_FLAG_FLOAT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	movl	$11, %eax
	cmovel	%r15d, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_4:
	testl	%r12d, %r12d
	jle	LBB0_19
## %bb.5:
	movslq	16(%rbp), %rcx
	movl	%r12d, %eax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	movl	%ecx, %r12d
	movl	%r12d, %eax
	andl	$-8, %eax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	addq	$-8, %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	%rax, %rdx
	shrq	$3, %rdx
	incq	%rdx
	movq	%rdx, %rax
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	andq	$-2, %rdx
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addq	$48, %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	leaq	48(%rbx), %r14
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	leaq	(,%rcx,4), %r13
	xorl	%r15d, %r15d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %edi
	movl	$524287, %esi                   ## imm = 0x7FFFF
	callq	_FFMIN
	movq	-136(%rbp), %rcx                ## 8-byte Reload
	movl	%eax, (%rcx,%r15,4)
	incq	%r15
	addq	%r13, %r14
	addq	%r13, %rbx
	cmpq	-128(%rbp), %r15                ## 8-byte Folded Reload
	je	LBB0_19
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
                                        ##     Child Loop BB0_17 Depth 2
	movl	$0, %edi
	cmpl	$0, 16(%rbp)
	jle	LBB0_18
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movslq	(%rax,%r15,4), %rax
	cmpl	$8, 16(%rbp)
	jae	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	xorl	%ecx, %ecx
	xorl	%edi, %edi
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	cmpq	$0, -104(%rbp)                  ## 8-byte Folded Reload
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rdx
	pxor	%xmm0, %xmm0
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	xorl	%ecx, %ecx
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	-48(%rdx,%rcx,4), %xmm2
	movdqu	-32(%rdx,%rcx,4), %xmm3
	movdqu	-16(%rdx,%rcx,4), %xmm4
	movdqu	(%rdx,%rcx,4), %xmm5
	movdqu	-48(%r14,%rcx,4), %xmm6
	pmulld	%xmm2, %xmm6
	paddd	%xmm0, %xmm6
	movdqu	-32(%r14,%rcx,4), %xmm2
	pmulld	%xmm3, %xmm2
	paddd	%xmm1, %xmm2
	movdqu	-16(%r14,%rcx,4), %xmm0
	pmulld	%xmm4, %xmm0
	paddd	%xmm6, %xmm0
	movdqu	(%r14,%rcx,4), %xmm1
	pmulld	%xmm5, %xmm1
	paddd	%xmm2, %xmm1
	addq	$16, %rcx
	addq	$-2, %rsi
	jne	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	testb	$1, -96(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_15
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r15, %rdx
	imulq	-72(%rbp), %rdx                 ## 8-byte Folded Reload
	leaq	(%rcx,%rax), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movdqu	(%rdi,%rsi,4), %xmm2
	movdqu	16(%rdi,%rsi,4), %xmm3
	addq	%rcx, %rdx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movdqu	(%rcx,%rdx,4), %xmm4
	pmulld	%xmm2, %xmm4
	paddd	%xmm4, %xmm0
	movdqu	16(%rcx,%rdx,4), %xmm2
	pmulld	%xmm3, %xmm2
	paddd	%xmm2, %xmm1
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=1
	paddd	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddd	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	paddd	%xmm1, %xmm0
	movd	%xmm0, %edi
	movq	-112(%rbp), %rdx                ## 8-byte Reload
	movq	%rdx, %rcx
	cmpq	%r12, %rdx
	je	LBB0_18
LBB0_16:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rax,4), %rax
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rbx,%rcx,4), %edx
	imull	(%rax,%rcx,4), %edx
	addl	%edx, %edi
	incq	%rcx
	cmpq	%rcx, %r12
	jne	LBB0_17
	jmp	LBB0_18
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	pxor	%xmm0, %xmm0
	xorl	%ecx, %ecx
	pxor	%xmm1, %xmm1
	testb	$1, -96(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_14
	jmp	LBB0_15
LBB0_19:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_PIX_FMT_PAL8,8,3            ## @AV_PIX_FMT_PAL8
	.comm	_AV_PIX_FMT_FLAG_FLOAT,4,2      ## @AV_PIX_FMT_FLAG_FLOAT
	.no_dead_strip	_hScale16To19_c
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hScale16To19_c
_hScale16To19_c:                        ; @hScale16To19_c
	.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, x6
	stp	x4, x5, [sp, #24]               ; 16-byte Folded Spill
	str	x3, [sp, #16]                   ; 8-byte Folded Spill
	mov	x24, x2
	str	x1, [sp, #40]                   ; 8-byte Folded Spill
	mov	x26, x0
	ldr	x0, [x0]
	bl	_av_pix_fmt_desc_get
	mov	x25, x0
	ldr	x8, [x0, #8]
	ldr	w20, [x8]
	ldr	x0, [x26]
	bl	_isAnyRGB
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x26]
Lloh0:
	adrp	x9, _AV_PIX_FMT_PAL8@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AV_PIX_FMT_PAL8@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
LBB0_2:
	ldr	x8, [x25, #8]
	ldr	w8, [x8]
	cmp	w8, #16
	b.ge	LBB0_4
; %bb.3:
	mov	w25, #9
	cmp	w24, #1
	b.ge	LBB0_5
	b	LBB0_16
LBB0_4:
	sub	w8, w20, #5
	ldr	w9, [x25]
Lloh3:
	adrp	x10, _AV_PIX_FMT_FLAG_FLOAT@GOTPAGE
Lloh4:
	ldr	x10, [x10, _AV_PIX_FMT_FLAG_FLOAT@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w10, w9
	mov	w9, #11
	csel	w25, w8, w9, eq
	cmp	w24, #1
	b.lt	LBB0_16
LBB0_5:
	mov	x26, #0
	mov	x27, #0
	mov	w24, w24
	mov	w28, w19
	sxtw	x21, w19
	and	x22, x28, #0xfffffff0
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	add	x20, x8, #32
	sbfiz	x23, x19, #2, #32
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	add	x8, x8, #32
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	w9, #0
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	asr	w0, w9, w25
	mov	w1, #524287
	bl	_FFMIN
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	str	w0, [x8, x27, lsl #2]
	add	x27, x27, #1
	add	x20, x20, x23
	add	x26, x26, x21
	cmp	x27, x24
	b.eq	LBB0_16
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
                                        ;     Child Loop BB0_15 Depth 2
	cmp	w19, #1
	b.lt	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	ldrsw	x8, [x8, x27, lsl #2]
	cmp	w19, #16
	b.hs	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x11, #0
	mov	w9, #0
	b	LBB0_14
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	add	x9, x9, x8, lsl #2
	movi.2d	v0, #0000000000000000
	mov	x10, x20
	mov	x11, x22
	movi.2d	v1, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_12:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	q4, q5, [x9, #-32]
	ldp	q6, q7, [x9], #64
	ldp	q16, q17, [x10, #-32]
	ldp	q18, q19, [x10], #64
	mla.4s	v0, v16, v4
	mla.4s	v1, v17, v5
	mla.4s	v2, v18, v6
	mla.4s	v3, v19, v7
	subs	x11, x11, #16
	b.ne	LBB0_12
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=1
	add.4s	v0, v1, v0
	add.4s	v0, v2, v0
	add.4s	v0, v3, v0
	addv.4s	s0, v0
	fmov	w9, s0
	mov	x11, x22
	cmp	x22, x28
	b.eq	LBB0_7
LBB0_14:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x10, x11, x26
	ldr	x12, [sp, #24]                  ; 8-byte Folded Reload
	add	x10, x12, x10, lsl #2
	add	x8, x11, x8
	ldr	x12, [sp, #16]                  ; 8-byte Folded Reload
	add	x8, x12, x8, lsl #2
	sub	x11, x28, x11
LBB0_15:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w12, [x8], #4
	ldr	w13, [x10], #4
	madd	w9, w13, w12, w9
	subs	x11, x11, #1
	b.ne	LBB0_15
	b	LBB0_7
LBB0_16:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_PIX_FMT_PAL8,8,3            ; @AV_PIX_FMT_PAL8
	.comm	_AV_PIX_FMT_FLAG_FLOAT,4,2      ; @AV_PIX_FMT_FLAG_FLOAT
	.no_dead_strip	_hScale16To19_c
.subsections_via_symbols
