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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function process_slice_yuv420p
_process_slice_yuv420p:                 ; @process_slice_yuv420p
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	x28, x27, [sp, #128]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #144]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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	x20, x3
	mov	x21, x2
	mov	x19, x1
	ldp	x23, x22, [x1, #24]
	ldr	w0, [x22, #24]
	mov	w1, #2
	bl	_FFALIGN
	asr	w8, w0, #1
	mul	w9, w8, w21
	sdiv	w10, w9, w20
	lsl	w16, w10, #1
	add	w8, w8, w9
	sdiv	w8, w8, w20
	lsl	w8, w8, #1
	str	w8, [sp, #36]                   ; 4-byte Folded Spill
	cmp	w16, w8
	b.ge	LBB0_6
; %bb.1:
	ldr	w17, [x22]
	ldp	w0, w1, [x19]
	ldp	w24, w25, [x19, #8]
	ldp	w21, w19, [x19, #16]
	mov	w26, #32768
	movk	w26, #128, lsl #16
	ldp	x9, x8, [x23, #8]
	sxtw	x10, w16
	orr	x11, x10, #0x1
	ldpsw	x12, x14, [x9]
	ldp	x9, x13, [x8]
	madd	x2, x12, x11, x9
	madd	x3, x12, x10, x9
	ldr	x8, [x8, #16]
	sbfx	x9, x16, #1, #31
	str	x14, [sp, #24]                  ; 8-byte Folded Spill
	mul	x14, x14, x9
	add	x4, x8, x14
	add	x27, x13, x14
	ldp	x13, x8, [x22, #8]
	ldpsw	x14, x5, [x13]
	mul	w11, w14, w11
	ldp	x13, x15, [x8]
	add	x11, x13, w11, sxtw
	ldr	x8, [x8, #16]
	str	x5, [sp, #16]                   ; 8-byte Folded Spill
	mul	x9, x5, x9
	add	x5, x8, x9
	add	x9, x15, x9
	madd	x10, x14, x10, x13
	lsl	w8, w14, #1
	sxtw	x8, w8
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	lsl	w8, w12, #1
	sxtw	x8, w8
	str	x8, [sp]                        ; 8-byte Folded Spill
	stp	w17, w0, [sp, #56]              ; 8-byte Folded Spill
	stp	w19, w1, [sp, #48]              ; 8-byte Folded Spill
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldp	x11, x8, [sp]                   ; 16-byte Folded Reload
	add	x10, x10, x8
	ldp	x13, x12, [x29, #-96]           ; 16-byte Folded Reload
	add	x3, x13, x11
	ldr	x14, [sp, #104]                 ; 8-byte Folded Reload
	add	x14, x14, x8
	add	x2, x12, x11
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	add	x9, x9, x8
	add	x5, x5, x8
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	add	x27, x27, x8
	add	x4, x4, x8
	ldr	x16, [sp, #40]                  ; 8-byte Folded Reload
	add	w16, w16, #2
	ldr	w8, [sp, #36]                   ; 4-byte Folded Reload
	cmp	w16, w8
	mov	x11, x14
	b.ge	LBB0_6
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	str	x11, [sp, #104]                 ; 8-byte Folded Spill
	stp	x3, x2, [x29, #-96]             ; 16-byte Folded Spill
	str	x16, [sp, #40]                  ; 8-byte Folded Spill
	cmp	w17, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x22, #0
	mov	x20, #0
	stp	x27, x4, [sp, #88]              ; 16-byte Folded Spill
	stp	x9, x5, [sp, #72]               ; 16-byte Folded Spill
	str	x10, [sp, #64]                  ; 8-byte Folded Spill
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w8, [x9, x22]
	mov	x19, x21
	sub	w21, w8, #128
	ldrb	w8, [x5, x22]
	sub	w23, w8, #128
	madd	w8, w21, w0, w26
	madd	w8, w23, w1, w8
	mov	x27, x24
	add	x24, x10, x20
	ldrb	w9, [x24]
	sub	w28, w8, #2048, lsl #12         ; =8388608
	add	w8, w28, w9, lsl #16
	asr	w0, w8, #16
	bl	_CB
	mov	x26, x25
	ldur	x8, [x29, #-96]                 ; 8-byte Folded Reload
	add	x25, x8, x20
	strb	w0, [x25]
	ldrb	w8, [x24, #1]
	add	w8, w28, w8, lsl #16
	asr	w0, w8, #16
	bl	_CB
	strb	w0, [x25, #1]
	ldr	x8, [sp, #104]                  ; 8-byte Folded Reload
	add	x24, x8, x20
	ldrb	w8, [x24]
	add	w8, w28, w8, lsl #16
	asr	w0, w8, #16
	bl	_CB
	ldur	x8, [x29, #-88]                 ; 8-byte Folded Reload
	add	x25, x8, x20
	strb	w0, [x25]
	ldrb	w8, [x24, #1]
	mov	x24, x27
	ldr	x27, [sp, #88]                  ; 8-byte Folded Reload
	add	w8, w28, w8, lsl #16
	asr	w0, w8, #16
	bl	_CB
	strb	w0, [x25, #1]
	mov	x25, x26
	mov	w26, #32768
	movk	w26, #128, lsl #16
	madd	w8, w21, w24, w26
	madd	w8, w23, w25, w8
	asr	w0, w8, #16
	bl	_CB
	strb	w0, [x27, x22]
	madd	w8, w21, w19, w26
	mov	x21, x19
	ldr	w19, [sp, #48]                  ; 4-byte Folded Reload
	madd	w8, w23, w19, w8
	asr	w0, w8, #16
	bl	_CB
	ldp	x10, x9, [sp, #64]              ; 16-byte Folded Reload
	ldr	x5, [sp, #80]                   ; 8-byte Folded Reload
	ldr	x4, [sp, #96]                   ; 8-byte Folded Reload
	ldp	w1, w17, [sp, #52]              ; 8-byte Folded Reload
	strb	w0, [x4, x22]
	ldr	w0, [sp, #60]                   ; 4-byte Folded Reload
	add	x20, x20, #2
	add	x22, x22, #1
	cmp	w17, w20
	b.gt	LBB0_5
	b	LBB0_2
LBB0_6:
	mov	w0, #0
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #144]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_process_slice_yuv420p
.subsections_via_symbols
