	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fill_yuv_image
_fill_yuv_image:                        ## @fill_yuv_image
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $r8d killed $r8d def $r8
                                        ## kill: def $edx killed $edx def $rdx
	testl	%ecx, %ecx
	jle	LBB0_15
## %bb.1:
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	leal	(%r8,%r8,2), %r8d
	movl	%edx, %r10d
	andl	$-2, %r10d
	xorl	%r14d, %r14d
	movl	%r8d, %r11d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%r14d
	incl	%r11d
	cmpl	%ecx, %r14d
	je	LBB0_9
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	testl	%edx, %edx
	jle	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r12d, %r12d
	movq	(%rdi), %r15
	cmpl	$1, %edx
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r12d, %r12d
	movl	%r11d, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movslq	(%rsi), %rax
	movslq	%r14d, %r13
	imulq	%r13, %rax
	addq	%r12, %rax
	movl	%ebx, (%r15,%rax,4)
	leal	1(%rbx), %eax
	movslq	(%rsi), %r9
	imulq	%r13, %r9
	addq	%r12, %r9
	movl	%eax, 4(%r15,%r9,4)
	addl	$2, %ebx
	addq	$2, %r12
	cmpl	%r12d, %r10d
	jne	LBB0_5
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	testb	$1, %dl
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	(%r14,%r8), %eax
	addl	%r12d, %eax
	movl	(%rsi), %ebx
	imull	%r14d, %ebx
	addl	%r12d, %ebx
	movslq	%ebx, %rbx
	movl	%eax, (%r15,%rbx,4)
	jmp	LBB0_8
LBB0_9:
	cmpl	$2, %ecx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	jl	LBB0_15
## %bb.10:
	movl	%ecx, %r10d
	shrl	$31, %r10d
	addl	%ecx, %r10d
	sarl	%r10d
	movl	%edx, %r11d
	shrl	$31, %r11d
	addl	%edx, %r11d
	sarl	%r11d
	leal	(%rax,%rax), %ecx
	addl	$128, %ecx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	leal	(%rax,%rax,4), %r8d
	addl	$64, %r8d
	xorl	%r13d, %r13d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=1
	incl	%r13d
	cmpl	%r10d, %r13d
	je	LBB0_15
LBB0_11:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
	cmpl	$2, %edx
	jl	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leal	(%rax,%r13), %r14d
	movq	8(%rdi), %r15
	movq	16(%rdi), %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_11 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movslq	4(%rsi), %rcx
	movslq	%r13d, %rax
	imulq	%rax, %rcx
	addq	%rbx, %rcx
	movl	%r14d, (%r15,%rcx,4)
	leal	(%r8,%rbx), %ecx
	movslq	8(%rsi), %r9
	imulq	%rax, %r9
	addq	%rbx, %r9
	movl	%ecx, (%r12,%r9,4)
	incq	%rbx
	cmpl	%ebx, %r11d
	jne	LBB0_13
	jmp	LBB0_14
LBB0_15:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_fill_yuv_image
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fill_yuv_image
_fill_yuv_image:                        ; @fill_yuv_image
	.cfi_startproc
; %bb.0:
	cmp	w3, #1
	b.lt	LBB0_12
; %bb.1:
	mov	w8, #0
	add	w9, w4, w4, lsl #1
	mov	w10, w2
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w8, w8, #1
	add	x9, x9, #1
	cmp	w8, w3
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	cmp	w2, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x11, #0
	ldr	x12, [x0]
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w13, w9, w11
	ldrsw	x14, [x1]
	sxtw	x15, w8
	madd	x14, x15, x14, x11
	str	w13, [x12, x14, lsl #2]
	add	x11, x11, #1
	cmp	w10, w11
	b.ne	LBB0_5
	b	LBB0_2
LBB0_6:
	cmp	w3, #0
	cinc	w9, w3, lt
	cmp	w3, #2
	b.lt	LBB0_12
; %bb.7:
	mov	w8, #0
	asr	w9, w9, #1
	cmp	w2, #0
	cinc	w10, w2, lt
	asr	w10, w10, #1
	lsl	w11, w4, #1
	add	w11, w11, #128
	add	w12, w4, w4, lsl #2
	add	w12, w12, #64
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	w8, w8, #1
	cmp	w8, w9
	b.eq	LBB0_12
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	cmp	w2, #2
	b.lt	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x13, #0
	add	w14, w11, w8
	ldp	x15, x16, [x0, #8]
LBB0_11:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrsw	x17, [x1, #4]
	sxtw	x3, w8
	madd	x17, x3, x17, x13
	str	w14, [x15, x17, lsl #2]
	add	w17, w12, w13
	ldrsw	x4, [x1, #8]
	madd	x3, x3, x4, x13
	str	w17, [x16, x3, lsl #2]
	add	x13, x13, #1
	cmp	w10, w13
	b.ne	LBB0_11
	b	LBB0_8
LBB0_12:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_fill_yuv_image
.subsections_via_symbols
