	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sub_left_prediction_bgr32
_sub_left_prediction_bgr32:             ## @sub_left_prediction_bgr32
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rdx, %rbx
	movq	%rsi, %r13
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	%ecx, %edi
	movl	$8, %esi
	callq	_FFMIN
	testl	%eax, %eax
	jle	LBB0_3
## %bb.1:
	movq	24(%rbp), %rcx
	movl	(%rcx), %r10d
	movq	16(%rbp), %rcx
	movl	(%rcx), %edi
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %edx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %r14d
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_R@GOTPCREL(%rip), %rsi
	movslq	(%rsi), %r9
	addq	%rcx, %r9
	movl	(%rbx,%r9,4), %r15d
	movq	%rbx, %r11
	movq	_G@GOTPCREL(%rip), %rsi
	movslq	(%rsi), %rbx
	addq	%rcx, %rbx
	movl	(%r11,%rbx,4), %r12d
	movq	_B@GOTPCREL(%rip), %rsi
	movslq	(%rsi), %rbx
	addq	%rcx, %rbx
	movl	(%r11,%rbx,4), %r8d
	movl	%r15d, %ebx
	subl	%r14d, %ebx
	movq	_A@GOTPCREL(%rip), %r14
	movslq	(%r14), %rsi
	addq	%rcx, %rsi
	movl	(%r11,%rsi,4), %esi
	movl	%ebx, (%r13,%r9,4)
	movl	%r12d, %ebx
	subl	%edx, %ebx
	movq	_G@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	addq	%rcx, %rdx
	movl	%ebx, (%r13,%rdx,4)
	movq	%r11, %rbx
	movl	%r8d, %edx
	subl	%edi, %edx
	movq	_B@GOTPCREL(%rip), %rdi
	movslq	(%rdi), %rdi
	addq	%rcx, %rdi
	movl	%edx, (%r13,%rdi,4)
	movl	%esi, %edx
	subl	%r10d, %edx
	movslq	(%r14), %rdi
	addq	%rcx, %rdi
	movl	%edx, (%r13,%rdi,4)
	addq	$4, %rcx
	movl	%r15d, %r14d
	movl	%r12d, %edx
	movl	%r8d, %edi
	movl	%esi, %r10d
	decl	%eax
	jne	LBB0_2
LBB0_3:
	subq	$-128, %r13
	leaq	128(%rbx), %rsi
	leaq	112(%rbx), %rdx
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	leal	-32(,%r14,4), %ecx
	movq	%r13, %rdi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	callq	*(%rax)
	leal	-4(,%r14,4), %eax
	movq	_R@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	cltq
	addq	%rax, %rcx
	movl	(%rbx,%rcx,4), %ecx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%ecx, (%rdx)
	movq	_G@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	addq	%rax, %rcx
	movl	(%rbx,%rcx,4), %ecx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%ecx, (%rdx)
	movq	_B@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	addq	%rax, %rcx
	movl	(%rbx,%rcx,4), %ecx
	movq	16(%rbp), %rdx
	movl	%ecx, (%rdx)
	movq	_A@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	addq	%rax, %rcx
	movl	(%rbx,%rcx,4), %eax
	movq	24(%rbp), %rcx
	movl	%eax, (%rcx)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_R,4,2                          ## @R
	.comm	_G,4,2                          ## @G
	.comm	_B,4,2                          ## @B
	.comm	_A,4,2                          ## @A
	.no_dead_strip	_sub_left_prediction_bgr32
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sub_left_prediction_bgr32
_sub_left_prediction_bgr32:             ; @sub_left_prediction_bgr32
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	stp	x0, x7, [sp]                    ; 16-byte Folded Spill
	mov	x20, x6
	mov	x22, x5
	mov	x23, x4
	mov	x24, x3
	mov	x21, x2
	mov	x25, x1
	mov	x0, x3
	mov	w1, #8
	bl	_FFMIN
Lloh0:
	adrp	x19, _R@GOTPAGE
Lloh1:
	ldr	x19, [x19, _R@GOTPAGEOFF]
Lloh2:
	adrp	x26, _G@GOTPAGE
Lloh3:
	ldr	x26, [x26, _G@GOTPAGEOFF]
Lloh4:
	adrp	x28, _B@GOTPAGE
Lloh5:
	ldr	x28, [x28, _B@GOTPAGEOFF]
Lloh6:
	adrp	x27, _A@GOTPAGE
Lloh7:
	ldr	x27, [x27, _A@GOTPAGEOFF]
	cmp	w0, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x8, #0
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	ldr	w9, [x9]
	ldr	w10, [x20]
	ldr	w11, [x22]
	ldr	w12, [x23]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x13, [x19]
	add	x13, x8, x13
	lsl	x13, x13, #2
	ldr	w14, [x21, x13]
	ldrsw	x15, [x26]
	add	x15, x8, x15
	ldr	w15, [x21, x15, lsl #2]
	ldrsw	x16, [x28]
	add	x16, x8, x16
	ldr	w16, [x21, x16, lsl #2]
	ldrsw	x17, [x27]
	add	x17, x8, x17
	ldr	w17, [x21, x17, lsl #2]
	sub	w12, w14, w12
	str	w12, [x25, x13]
	sub	w11, w15, w11
	ldrsw	x12, [x26]
	add	x12, x8, x12
	str	w11, [x25, x12, lsl #2]
	sub	w10, w16, w10
	ldrsw	x11, [x28]
	add	x11, x8, x11
	str	w10, [x25, x11, lsl #2]
	sub	w9, w17, w9
	ldrsw	x10, [x27]
	add	x10, x8, x10
	str	w9, [x25, x10, lsl #2]
	add	x8, x8, #4
	mov	x12, x14
	mov	x11, x15
	mov	x10, x16
	mov	x9, x17
	subs	w0, w0, #1
	b.ne	LBB0_2
LBB0_3:
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	ldr	x8, [x8]
	add	x0, x25, #128
	add	x1, x21, #128
	add	x2, x21, #112
	lsl	w24, w24, #2
	sub	w3, w24, #32
	blr	x8
	sub	w8, w24, #4
	ldr	w9, [x19]
	add	w9, w9, w8
	ldr	w9, [x21, w9, sxtw #2]
	str	w9, [x23]
	ldr	w9, [x26]
	add	w9, w9, w8
	ldr	w9, [x21, w9, sxtw #2]
	str	w9, [x22]
	ldr	w9, [x28]
	add	w9, w9, w8
	ldr	w9, [x21, w9, sxtw #2]
	str	w9, [x20]
	ldr	w9, [x27]
	add	w8, w9, w8
	ldr	w8, [x21, w8, sxtw #2]
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	str	w8, [x9]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_R,4,2                          ; @R
	.comm	_G,4,2                          ; @G
	.comm	_B,4,2                          ; @B
	.comm	_A,4,2                          ; @A
	.no_dead_strip	_sub_left_prediction_bgr32
.subsections_via_symbols
