	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gif_fill
_gif_fill:                              ## @gif_fill
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movslq	(%rax), %rax
	shrq	$2, %rax
	movslq	8(%rdi), %rcx
	imulq	%rax, %rcx
	testq	%rcx, %rcx
	jle	LBB0_12
## %bb.1:
	movq	16(%rdi), %rax
	movq	(%rax), %rax
	leaq	(%rax,%rcx,4), %rcx
	leaq	4(%rax), %rdx
	cmpq	%rdx, %rcx
	cmovaq	%rcx, %rdx
	movq	%rax, %r9
	notq	%r9
	addq	%rdx, %r9
	cmpq	$28, %r9
	jb	LBB0_11
## %bb.2:
	shrq	$2, %r9
	incq	%r9
	movq	%r9, %r8
	andq	$-8, %r8
	movd	%esi, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	leaq	-8(%r8), %rdx
	movq	%rdx, %rdi
	shrq	$3, %rdi
	incq	%rdi
	movl	%edi, %r10d
	andl	$7, %r10d
	cmpq	$56, %rdx
	jae	LBB0_4
## %bb.3:
	xorl	%edx, %edx
	jmp	LBB0_6
LBB0_4:
	andq	$-8, %rdi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	%xmm0, (%rax,%rdx,4)
	movdqu	%xmm0, 16(%rax,%rdx,4)
	movdqu	%xmm0, 32(%rax,%rdx,4)
	movdqu	%xmm0, 48(%rax,%rdx,4)
	movdqu	%xmm0, 64(%rax,%rdx,4)
	movdqu	%xmm0, 80(%rax,%rdx,4)
	movdqu	%xmm0, 96(%rax,%rdx,4)
	movdqu	%xmm0, 112(%rax,%rdx,4)
	movdqu	%xmm0, 128(%rax,%rdx,4)
	movdqu	%xmm0, 144(%rax,%rdx,4)
	movdqu	%xmm0, 160(%rax,%rdx,4)
	movdqu	%xmm0, 176(%rax,%rdx,4)
	movdqu	%xmm0, 192(%rax,%rdx,4)
	movdqu	%xmm0, 208(%rax,%rdx,4)
	movdqu	%xmm0, 224(%rax,%rdx,4)
	movdqu	%xmm0, 240(%rax,%rdx,4)
	addq	$64, %rdx
	addq	$-8, %rdi
	jne	LBB0_5
LBB0_6:
	testq	%r10, %r10
	je	LBB0_9
## %bb.7:
	leaq	(%rax,%rdx,4), %rdx
	addq	$16, %rdx
	shlq	$5, %r10
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	%xmm0, -16(%rdx,%rdi)
	movdqu	%xmm0, (%rdx,%rdi)
	addq	$32, %rdi
	cmpq	%rdi, %r10
	jne	LBB0_8
LBB0_9:
	cmpq	%r8, %r9
	je	LBB0_12
## %bb.10:
	leaq	(%rax,%r8,4), %rax
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	%esi, (%rax)
	addq	$4, %rax
	cmpq	%rcx, %rax
	jb	LBB0_11
LBB0_12:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_gif_fill
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gif_fill
_gif_fill:                              ; @gif_fill
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	ldrsw	x8, [x8]
	lsr	x8, x8, #2
	ldrsw	x9, [x0, #8]
	mul	x8, x8, x9
	cmp	x8, #1
	b.lt	LBB0_7
; %bb.1:
	ldr	x9, [x0, #16]
	ldr	x12, [x9]
	add	x8, x12, x8, lsl #2
	add	x9, x12, #4
	cmp	x8, x9
	csel	x9, x8, x9, hi
	mvn	x10, x12
	add	x9, x9, x10
	cmp	x9, #60
	b.hs	LBB0_3
; %bb.2:
	mov	x9, x12
	b	LBB0_6
LBB0_3:
	lsr	x9, x9, #2
	add	x10, x9, #1
	and	x11, x10, #0x7ffffffffffffff0
	add	x9, x12, x11, lsl #2
	dup.4s	v0, w1
	add	x12, x12, #32
	mov	x13, x11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	stp	q0, q0, [x12, #-32]
	stp	q0, q0, [x12], #64
	subs	x13, x13, #16
	b.ne	LBB0_4
; %bb.5:
	cmp	x10, x11
	b.eq	LBB0_7
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	str	w1, [x9], #4
	cmp	x9, x8
	b.lo	LBB0_6
LBB0_7:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_gif_fill
.subsections_via_symbols
