	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_avg_color
_get_avg_color:                         ## @get_avg_color
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	(%rsi), %r8d
	testl	%r8d, %r8d
	jle	LBB0_1
## %bb.2:
	movslq	4(%rsi), %rax
	leaq	(%rdi,%rax,8), %r9
	xorl	%edx, %edx
	xorl	%r10d, %r10d
	xorl	%r11d, %r11d
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r9,%rdx,8), %rdi
	movl	(%rdi), %ebx
	movl	4(%rdi), %edi
	movzbl	%bh, %ecx
	movzbl	%bl, %esi
	shrl	$16, %ebx
	movzbl	%bl, %ebx
	imull	%edi, %ebx
	addl	%ebx, %eax
	imull	%edi, %ecx
	addl	%ecx, %r14d
	imull	%edi, %esi
	addl	%esi, %r11d
	addl	%edi, %r10d
	incq	%rdx
	cmpq	%rdx, %r8
	jne	LBB0_3
	jmp	LBB0_4
LBB0_1:
	xorl	%eax, %eax
	xorl	%r14d, %r14d
	xorl	%r11d, %r11d
	xorl	%r10d, %r10d
LBB0_4:
	cltd
	idivl	%r10d
	movl	%eax, %r8d
	movl	%r14d, %eax
	cltd
	idivl	%r10d
	movl	%eax, %esi
	movl	%r11d, %eax
	cltd
	idivl	%r10d
	shll	$16, %r8d
	shll	$8, %esi
	orl	%r8d, %esi
	orl	%esi, %eax
	orl	$-16777216, %eax                ## imm = 0xFF000000
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_get_avg_color
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_avg_color
_get_avg_color:                         ; @get_avg_color
	.cfi_startproc
; %bb.0:
	ldr	w12, [x1]
	cmp	w12, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w9, #0
	mov	w8, #0
	mov	w10, #0
	mov	w11, #0
	ldrsw	x13, [x1, #4]
	add	x13, x0, x13, lsl #3
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x14, [x13], #8
	ldp	w15, w14, [x14]
	ubfx	w16, w15, #16, #8
	madd	w11, w16, w14, w11
	ubfx	w16, w15, #8, #8
	madd	w10, w16, w14, w10
	and	w15, w15, #0xff
	madd	w8, w15, w14, w8
	add	w9, w14, w9
	subs	x12, x12, #1
	b.ne	LBB0_2
	b	LBB0_4
LBB0_3:
	mov	w11, #0
	mov	w10, #0
	mov	w8, #0
	mov	w9, #0
LBB0_4:
	sdiv	w11, w11, w9
	sdiv	w10, w10, w9
	lsl	w11, w11, #16
	orr	w10, w11, w10, lsl #8
	sdiv	w8, w8, w9
	orr	w8, w10, w8
	orr	w0, w8, #0xff000000
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_get_avg_color
.subsections_via_symbols
