	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function process_slice_yuv422p
_process_slice_yuv422p:                 ## @process_slice_yuv422p
	.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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %edi
	movq	32(%rsi), %r14
	movl	(%r14), %r9d
	movl	%r9d, %eax
	imull	%edx, %eax
	cltd
	idivl	%ecx
	movl	%eax, %r11d
	incl	%edi
	imull	%r9d, %edi
	movl	%edi, %eax
	cltd
	idivl	%ecx
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cmpl	%eax, %r11d
	jge	LBB0_6
## %bb.1:
	movl	4(%r14), %r13d
	movq	24(%rsi), %rax
	movq	8(%rax), %r9
	movq	16(%rax), %r10
	movslq	(%r9), %rax
	movslq	%r11d, %rbx
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	movq	%rax, %r15
	imulq	%rbx, %r15
	addq	(%r10), %r15
	movslq	4(%r9), %rdx
	movq	%rdx, -120(%rbp)                ## 8-byte Spill
	movq	%rdx, %r12
	imulq	%rbx, %r12
	movq	16(%r10), %r8
	addq	%r12, %r8
	addq	8(%r10), %r12
	movq	8(%r14), %r9
	movq	16(%r14), %rdx
	movslq	(%r9), %r10
	movq	%r10, -112(%rbp)                ## 8-byte Spill
	imulq	%rbx, %r10
	addq	(%rdx), %r10
	movslq	4(%r9), %r9
	movq	%r9, -104(%rbp)                 ## 8-byte Spill
	imulq	%r9, %rbx
	movq	16(%rdx), %rcx
	addq	%rbx, %rcx
	addq	8(%rdx), %rbx
	movl	(%rsi), %edi
	movl	4(%rsi), %edx
	movl	8(%rsi), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movl	12(%rsi), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	16(%rsi), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	20(%rsi), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	%r13d, -76(%rbp)                ## 4-byte Spill
	movl	%edi, -72(%rbp)                 ## 4-byte Spill
	movl	%edx, -68(%rbp)                 ## 4-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	-112(%rbp), %r10                ## 8-byte Folded Reload
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	addq	-128(%rbp), %r15                ## 8-byte Folded Reload
	movq	-104(%rbp), %rax                ## 8-byte Reload
	addq	%rax, %rbx
	addq	%rax, %rcx
	movq	-120(%rbp), %rax                ## 8-byte Reload
	addq	%rax, %r12
	addq	%rax, %r8
	movl	-48(%rbp), %r11d                ## 4-byte Reload
	incl	%r11d
	cmpl	-44(%rbp), %r11d                ## 4-byte Folded Reload
	je	LBB0_6
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movl	%r11d, -48(%rbp)                ## 4-byte Spill
	testl	%r13d, %r13d
	jle	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	xorl	%r14d, %r14d
	movq	%rbx, -160(%rbp)                ## 8-byte Spill
	movq	%r12, -152(%rbp)                ## 8-byte Spill
	movq	%r8, -144(%rbp)                 ## 8-byte Spill
	movq	%rcx, -136(%rbp)                ## 8-byte Spill
	movq	%r10, -96(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rax, -168(%rbp)                ## 8-byte Spill
	movzbl	(%rbx,%r14), %ebx
	addl	$-128, %ebx
	movzbl	(%rcx,%r14), %r13d
	addl	$-128, %r13d
	movl	%ebx, %eax
	imull	%edi, %eax
	movl	%r13d, %r12d
	imull	%edx, %r12d
	addl	%eax, %r12d
	movzbl	(%r10,%r14,2), %eax
	shll	$16, %eax
	leal	(%rax,%r12), %edi
	addl	$32768, %edi                    ## imm = 0x8000
	sarl	$16, %edi
	callq	_CB
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movb	%al, (%r15,%r14,2)
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movzbl	1(%rax,%r14,2), %eax
	shll	$16, %eax
	leal	(%rax,%r12), %edi
	addl	$32768, %edi                    ## imm = 0x8000
	movq	-152(%rbp), %r12                ## 8-byte Reload
	sarl	$16, %edi
	callq	_CB
	movb	%al, 1(%r15,%r14,2)
	movl	-64(%rbp), %r15d                ## 4-byte Reload
	movl	%ebx, %eax
	imull	%r15d, %eax
	movl	%r13d, %ecx
	imull	-60(%rbp), %ecx                 ## 4-byte Folded Reload
	leal	(%rax,%rcx), %edi
	addl	$8421376, %edi                  ## imm = 0x808000
	sarl	$16, %edi
	callq	_CB
	movb	%al, (%r12,%r14)
	imull	-56(%rbp), %ebx                 ## 4-byte Folded Reload
	imull	-52(%rbp), %r13d                ## 4-byte Folded Reload
	leal	(%rbx,%r13), %edi
	addl	$8421376, %edi                  ## imm = 0x808000
	sarl	$16, %edi
	callq	_CB
	movq	-96(%rbp), %r10                 ## 8-byte Reload
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	movl	-72(%rbp), %edi                 ## 4-byte Reload
	movq	-136(%rbp), %rcx                ## 8-byte Reload
	movq	-144(%rbp), %r8                 ## 8-byte Reload
	movq	-160(%rbp), %rbx                ## 8-byte Reload
	movl	-76(%rbp), %r13d                ## 4-byte Reload
	movb	%al, (%r8,%r14)
	movq	-168(%rbp), %rax                ## 8-byte Reload
	incq	%r14
	addl	$2, %eax
	cmpl	%eax, %r13d
	jg	LBB0_4
	jmp	LBB0_5
LBB0_6:
	xorl	%eax, %eax
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_process_slice_yuv422p
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function process_slice_yuv422p
_process_slice_yuv422p:                 ; @process_slice_yuv422p
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x28, x27, [sp, #112]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #128]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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
	ldr	x8, [x1, #32]
	ldr	w9, [x8]
	mul	w10, w9, w2
	sdiv	w13, w10, w3
	add	w9, w9, w10
	sdiv	w9, w9, w3
	str	w9, [sp, #36]                   ; 4-byte Folded Spill
	cmp	w13, w9
	b.ge	LBB0_6
; %bb.1:
	ldr	w14, [x8, #4]
	ldp	w15, w16, [x1]
	ldp	w25, w22, [x1, #8]
	ldp	w21, w20, [x1, #16]
	mov	w19, #32768
	movk	w19, #128, lsl #16
	ldr	x9, [x1, #24]
	ldp	x9, x10, [x9, #8]
	sxtw	x11, w13
	ldpsw	x17, x0, [x9]
	ldp	x9, x12, [x10]
	stp	x0, x17, [sp, #16]              ; 16-byte Folded Spill
	madd	x28, x17, x11, x9
	ldr	x9, [x10, #16]
	mul	x10, x0, x11
	add	x17, x9, x10
	add	x24, x12, x10
	ldp	x8, x9, [x8, #8]
	ldpsw	x12, x0, [x8]
	ldp	x8, x10, [x9]
	stp	x0, x12, [sp]                   ; 16-byte Folded Spill
	madd	x12, x12, x11, x8
	ldr	x8, [x9, #16]
	mul	x9, x0, x11
	add	x11, x8, x9
	add	x9, x10, x9
	stp	w15, w14, [sp, #64]             ; 8-byte Folded Spill
	stp	w21, w16, [sp, #56]             ; 8-byte Folded Spill
	stp	w25, w20, [sp, #48]             ; 8-byte Folded Spill
	mov	w23, w25
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	add	x12, x12, x8
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	add	x28, x28, x8
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	add	x9, x9, x8
	add	x11, x11, x8
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	add	x24, x24, x8
	add	x17, x17, x8
	ldr	x13, [sp, #40]                  ; 8-byte Folded Reload
	add	w13, w13, #1
	ldr	w8, [sp, #36]                   ; 4-byte Folded Reload
	cmp	w13, w8
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	str	x13, [sp, #40]                  ; 8-byte Folded Spill
	cmp	w14, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x26, #0
	mov	w27, #1
	stur	x17, [x29, #-88]                ; 8-byte Folded Spill
	stp	x12, x24, [sp, #88]             ; 16-byte Folded Spill
	stp	x9, x11, [sp, #72]              ; 16-byte Folded Spill
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w8, [x9, x26]
	sub	w21, w8, #128
	ldrb	w8, [x11, x26]
	sub	w20, w8, #128
	madd	w8, w21, w15, w19
	madd	w8, w20, w16, w8
	add	x19, x12, x27
	ldurb	w9, [x19, #-1]
	mov	x24, x22
	sub	w22, w8, #2048, lsl #12         ; =8388608
	add	w8, w22, w9, lsl #16
	asr	w0, w8, #16
	bl	_CB
	mov	x25, x28
	add	x28, x28, x27
	sturb	w0, [x28, #-1]
	ldrb	w8, [x19]
	mov	w19, #32768
	movk	w19, #128, lsl #16
	add	w8, w22, w8, lsl #16
	mov	x22, x24
	ldr	x24, [sp, #96]                  ; 8-byte Folded Reload
	asr	w0, w8, #16
	bl	_CB
	strb	w0, [x28]
	mov	x28, x25
	madd	w8, w21, w23, w19
	madd	w8, w20, w22, w8
	asr	w0, w8, #16
	bl	_CB
	strb	w0, [x24, x26]
	ldp	w9, w8, [sp, #52]               ; 8-byte Folded Reload
	madd	w8, w21, w8, w19
	madd	w8, w20, w9, w8
	asr	w0, w8, #16
	bl	_CB
	ldp	x9, x11, [sp, #72]              ; 16-byte Folded Reload
	ldr	x12, [sp, #88]                  ; 8-byte Folded Reload
	ldur	x17, [x29, #-88]                ; 8-byte Folded Reload
	ldp	w16, w15, [sp, #60]             ; 8-byte Folded Reload
	ldr	w14, [sp, #68]                  ; 4-byte Folded Reload
	strb	w0, [x17, x26]
	add	x26, x26, #1
	add	x27, x27, #2
	sub	w8, w27, #1
	cmp	w14, w8
	b.gt	LBB0_5
	b	LBB0_2
LBB0_6:
	mov	w0, #0
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_process_slice_yuv422p
.subsections_via_symbols
