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

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