	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fill_picture_rgb
_fill_picture_rgb:                      ## @fill_picture_rgb
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r15
	movl	16(%r15), %ecx
	testl	%ecx, %ecx
	jle	LBB0_11
## %bb.1:
	movq	(%r15), %rax
	movq	8(%r15), %rdx
	movq	(%rax,%rdx,8), %r14
	movl	20(%r15), %eax
	xorl	%r12d, %r12d
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%r15), %ecx
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	%r12d
	cmpl	%ecx, %r12d
	jge	LBB0_11
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	testl	%eax, %eax
	jle	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx), %rcx
	movq	8(%rdx), %rdx
	movslq	(%rdx), %rdx
	movslq	%r12d, %rbx
	imulq	%rdx, %rbx
	shlq	$2, %rbx
	addq	(%rcx), %rbx
	xorl	%r13d, %r13d
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=2
	xorl	%ecx, %ecx
	cmpl	%edx, %eax
	sete	%cl
	movq	40(%r15,%rcx,8), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %esi
	shll	$16, %ecx
	shll	$8, %esi
	orl	%ecx, %esi
	orl	8(%rax), %esi
	movq	%rbx, %rdi
	callq	_AV_WB24
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=2
	addq	$12, %rbx
	movl	20(%r15), %eax
	incq	%r13
	cmpl	%eax, %r13d
	jge	LBB0_9
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	imull	%r12d, %eax
	cltq
	addq	%r13, %rax
	movl	(%r14,%rax,4), %eax
	movl	24(%r15), %ecx
	movq	_ALIVE_CELL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%ecx, %ecx
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	cmpl	%edx, %eax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	32(%r15), %r14
	movq	40(%r15), %r12
	movl	$255, %edi
	subl	%eax, %edi
	imull	%ecx, %edi
	movl	$255, %esi
	callq	_FFMIN
	movl	%eax, %r15d
	movl	(%r12), %eax
	movl	(%r14), %edi
	subl	%eax, %edi
	shll	$8, %eax
	imull	%r15d, %edi
	addl	%eax, %edi
	callq	_FAST_DIV255
	movl	%eax, (%rbx)
	movl	4(%r12), %eax
	movl	4(%r14), %edi
	subl	%eax, %edi
	shll	$8, %eax
	imull	%r15d, %edi
	addl	%eax, %edi
	callq	_FAST_DIV255
	movl	%eax, 4(%rbx)
	movl	8(%r12), %eax
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movl	8(%r14), %edi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	subl	%eax, %edi
	shll	$8, %eax
	imull	%r15d, %edi
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	addl	%eax, %edi
	callq	_FAST_DIV255
	movl	%eax, 8(%rbx)
	jmp	LBB0_8
LBB0_11:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ALIVE_CELL,4,2                 ## @ALIVE_CELL
	.no_dead_strip	_fill_picture_rgb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fill_picture_rgb
_fill_picture_rgb:                      ; @fill_picture_rgb
	.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
	str	x1, [sp, #8]                    ; 8-byte Folded Spill
	ldr	x22, [x0]
	ldr	w9, [x22, #16]
	cmp	w9, #1
	b.lt	LBB0_10
; %bb.1:
	mov	w23, #0
	ldp	x8, x10, [x22]
	ldr	x24, [x8, x10, lsl #3]
	ldr	w8, [x22, #20]
Lloh0:
	adrp	x25, _ALIVE_CELL@GOTPAGE
Lloh1:
	ldr	x25, [x25, _ALIVE_CELL@GOTPAGEOFF]
	mov	w28, #255
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x22, #16]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w23, w23, #1
	cmp	w23, w9
	b.ge	LBB0_10
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x19, #0
	ldr	x10, [sp, #8]                   ; 8-byte Folded Reload
	ldp	x9, x10, [x10]
	ldr	x9, [x9]
	ldr	w10, [x10]
	mul	w10, w10, w23
	add	x20, x9, w10, sxtw #2
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=2
	cmp	w8, w10
	mov	w8, #40
	mov	w9, #48
	csel	x8, x9, x8, eq
	ldr	x8, [x22, x8]
	ldp	w9, w10, [x8]
	lsl	w10, w10, #8
	orr	w9, w10, w9, lsl #16
	ldr	w8, [x8, #8]
	orr	w1, w9, w8
	mov	x0, x20
	bl	_AV_WB24
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	add	x20, x20, #12
	ldr	w8, [x22, #20]
	add	x19, x19, #1
	cmp	w19, w8
	b.ge	LBB0_2
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mul	w8, w23, w8
	add	x8, x19, w8, sxtw
	ldr	w8, [x24, x8, lsl #2]
	ldr	w9, [x22, #24]
	ldr	w10, [x25]
	cmp	w9, #0
	ccmp	w8, w10, #4, ne
	b.eq	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	ldp	x26, x27, [x22, #32]
	sub	w8, w28, w8
	mul	w0, w8, w9
	mov	w1, #255
	bl	_FFMIN
	mov	x21, x0
	ldr	w8, [x27]
	ldr	w9, [x26]
	sub	w9, w9, w8
	mul	w9, w9, w0
	add	w0, w9, w8, lsl #8
	bl	_FAST_DIV255
	str	w0, [x20]
	ldr	w8, [x27, #4]
	ldr	w9, [x26, #4]
	sub	w9, w9, w8
	mul	w9, w9, w21
	add	w0, w9, w8, lsl #8
	bl	_FAST_DIV255
	str	w0, [x20, #4]
	ldr	w8, [x27, #8]
	ldr	w9, [x26, #8]
	sub	w9, w9, w8
	mul	w9, w9, w21
	add	w0, w9, w8, lsl #8
	bl	_FAST_DIV255
	str	w0, [x20, #8]
	b	LBB0_7
LBB0_10:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ALIVE_CELL,4,2                 ; @ALIVE_CELL
	.no_dead_strip	_fill_picture_rgb
.subsections_via_symbols
