	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function yuv420raw_to_yuv420p
_yuv420raw_to_yuv420p:                  ## @yuv420raw_to_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	4(%rdi), %r9d
	cmpl	$1, %r9d
	je	LBB0_15
## %bb.1:
	movq	%rsi, %r12
	movq	%rdx, %rcx
	movl	(%rdi), %edx
	movl	%edx, %r13d
	shrl	%r13d
	movl	%r9d, %r8d
	imull	%edx, %r8d
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	leaq	(%rcx,%r8), %r14
	shrl	$2, %r8d
	leal	(,%r13,8), %r10d
	xorl	%eax, %eax
	movl	%edx, %esi
	movq	%r12, %rbx
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	movq	%r10, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	%r10, %r14
	addl	$16, %eax
	leal	-1(%r9), %edi
	movl	%ecx, %esi
	cmpl	%edi, %eax
	jae	LBB0_7
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movl	$1, %ecx
	cmpl	$1, %esi
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	xorl	%r15d, %r15d
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%r8, %r12
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%r13d, %edx
	callq	_make_8x8
	leaq	(%r14,%r12), %rsi
	leaq	64(%rbx), %rdi
	movl	%r13d, %edx
	callq	_make_8x8
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	addq	$384, %rbx                      ## imm = 0x180
	addq	$8, %r14
	addl	$16, %r15d
	movl	(%rcx), %edx
	leal	-1(%rdx), %eax
	cmpl	%eax, %r15d
	jb	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%rcx), %r9d
	movl	%edx, %ecx
	movq	%r12, %r8
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	-80(%rbp), %r10                 ## 8-byte Reload
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	jmp	LBB0_6
LBB0_7:
	cmpl	$1, %r9d
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_8
LBB0_15:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	subq	$-128, %r12
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	$1, %edx
LBB0_14:                                ##   in Loop: Header=BB0_9 Depth=1
	leal	(,%rdx,8), %ecx
	addq	%rcx, %r14
	addl	$8, %eax
	leal	-1(%r9), %ecx
	cmpl	%ecx, %eax
	jae	LBB0_15
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
	cmpl	$1, %edx
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leaq	(%r14,%rbx), %rsi
	movq	%r12, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_make_8x8
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	cmpl	$3, %r13d
	leal	1(%r13), %ecx
	setge	%al
	movl	%ecx, %r13d
	cmovgel	%r15d, %r13d
	shlq	$7, %rax
	addq	%rax, %r12
	addq	$64, %r12
	movl	(%rdi), %edx
	leal	-1(%rdx), %eax
	addq	$8, %rbx
	cmpl	%eax, %ebx
	jb	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	4(%rdi), %r9d
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_yuv420raw_to_yuv420p
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function yuv420raw_to_yuv420p
_yuv420raw_to_yuv420p:                  ; @yuv420raw_to_yuv420p
	.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
	ldr	w8, [x0, #4]
	cmp	w8, #1
	b.eq	LBB0_8
; %bb.1:
	mov	x19, x2
	mov	x20, x0
	mov	w25, #0
	ldr	w2, [x0]
	lsr	w22, w2, #1
	mul	w9, w8, w2
	add	x26, x19, x9
	lsr	w27, w9, #2
	lsl	w28, w22, #3
	mov	x9, x2
	str	x1, [sp, #8]                    ; 8-byte Folded Spill
	mov	x23, x1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x26, x26, x28
	add	w25, w25, #16
	sub	w10, w8, #1
	cmp	w25, w10
	b.hs	LBB0_7
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	cmp	w9, #1
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w21, #0
	mov	x24, x26
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x23
	mov	x1, x24
	mov	x2, x22
	bl	_make_8x8
	add	x1, x24, x27
	add	x0, x23, #64
	mov	x2, x22
	bl	_make_8x8
	add	x23, x23, #384
	add	x24, x24, #8
	add	w21, w21, #16
	ldr	w2, [x20]
	sub	w8, w2, #1
	cmp	w21, w8
	b.lo	LBB0_5
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x20, #4]
	mov	x9, x2
	b	LBB0_2
LBB0_7:
	cmp	w8, #1
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	b.ne	LBB0_9
LBB0_8:
	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
LBB0_9:
	mov	w22, #0
	mov	w23, #0
	add	x21, x9, #128
	mov	w24, #64
	mov	w25, #192
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	lsl	w9, w2, #3
	add	x19, x19, x9
	add	w23, w23, #8
	sub	w9, w8, #1
	cmp	w23, w9
	b.hs	LBB0_8
LBB0_11:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
	cmp	w2, #1
	b.eq	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x26, #0
LBB0_13:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x1, x19, x26
	mov	x0, x21
	bl	_make_8x8
	cmp	w22, #2
	csel	x8, x25, x24, gt
	add	x21, x21, x8
	csinc	w22, wzr, w22, gt
	ldr	w2, [x20]
	sub	w8, w2, #1
	add	x26, x26, #8
	cmp	w26, w8
	b.lo	LBB0_13
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w8, [x20, #4]
	b	LBB0_10
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_yuv420raw_to_yuv420p
.subsections_via_symbols
