	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_colorkey_slice
_do_colorkey_slice:                     ## @do_colorkey_slice
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r8d
	movl	(%rsi), %ebx
	movl	%ebx, %eax
	imull	%edx, %eax
	cltd
	idivl	%ecx
	movl	%eax, %r12d
	incl	%r8d
	imull	%ebx, %r8d
	movl	%r8d, %eax
	cltd
	idivl	%ecx
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cmpl	%eax, %r12d
	jge	LBB0_6
## %bb.1:
	movq	(%rdi), %r13
	movl	4(%rsi), %eax
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%r12d
	cmpl	-44(%rbp), %r12d                ## 4-byte Folded Reload
	je	LBB0_6
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	testl	%eax, %eax
	jle	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%rsi), %rax
	movq	(%rax), %r8
	movq	(%r13), %rcx
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%rsi), %rax
	movl	(%rax), %r14d
	imull	%r12d, %r14d
	movl	(%rcx), %eax
	addl	%r14d, %eax
	addl	%ebx, %eax
	cltq
	movl	(%r8,%rax,4), %esi
	movl	4(%rcx), %eax
	addl	%r14d, %eax
	addl	%ebx, %eax
	cltq
	movl	(%r8,%rax,4), %edx
	movl	8(%rcx), %eax
	addl	%r14d, %eax
	addl	%ebx, %eax
	cltq
	movl	(%r8,%rax,4), %ecx
	movq	%r13, %rdi
	callq	_do_colorkey_pixel
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	16(%rsi), %rdx
	movq	(%r13), %rcx
	addl	12(%rcx), %r14d
	movq	(%rdx), %r8
	addl	%ebx, %r14d
	movslq	%r14d, %rdx
	movl	%eax, (%r8,%rdx,4)
	incl	%r15d
	movl	4(%rsi), %eax
	addl	$4, %ebx
	cmpl	%eax, %r15d
	jl	LBB0_4
	jmp	LBB0_5
LBB0_6:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_do_colorkey_slice
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_colorkey_slice
_do_colorkey_slice:                     ; @do_colorkey_slice
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	w8, [x1]
	mul	w9, w8, w2
	sdiv	w21, w9, w3
	add	w8, w8, w9
	sdiv	w22, w8, w3
	cmp	w21, w22
	b.ge	LBB0_6
; %bb.1:
	mov	x19, x1
	ldr	x20, [x0]
	ldr	w10, [x1, #4]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w21, w21, #1
	cmp	w21, w22
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	cmp	w10, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w23, #0
	mov	w24, #0
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	ldr	x9, [x20]
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x10, [x19, #8]
	ldr	w10, [x10]
	mul	w25, w21, w10
	ldp	w10, w11, [x9]
	add	w10, w10, w25
	add	w10, w23, w10
	ldr	w1, [x8, w10, sxtw #2]
	add	w10, w11, w25
	add	w10, w23, w10
	ldr	w2, [x8, w10, sxtw #2]
	ldr	w9, [x9, #8]
	add	w9, w9, w25
	add	w9, w23, w9
	ldr	w3, [x8, w9, sxtw #2]
	mov	x0, x20
	bl	_do_colorkey_pixel
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	ldr	x9, [x20]
	ldr	w10, [x9, #12]
	add	w10, w10, w25
	add	w10, w23, w10
	str	w0, [x8, w10, sxtw #2]
	add	w24, w24, #1
	ldr	w10, [x19, #4]
	add	w23, w23, #4
	cmp	w24, w10
	b.lt	LBB0_5
	b	LBB0_2
LBB0_6:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_do_colorkey_slice
.subsections_via_symbols
