	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_colorhold_slice
_do_colorhold_slice:                    ## @do_colorhold_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, %ebx
	movq	%rsi, %r13
	movl	(%rsi), %r8d
	movl	%r8d, %eax
	imull	%edx, %eax
	cltd
	idivl	%ecx
	movl	%eax, %esi
	incl	%ebx
	imull	%r8d, %ebx
	movl	%ebx, %eax
	cltd
	idivl	%ecx
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	cmpl	%eax, %esi
	jge	LBB0_8
## %bb.1:
	movq	(%rdi), %rdi
	movl	4(%r13), %eax
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	incl	%ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	cmpl	-48(%rbp), %ecx                 ## 4-byte Folded Reload
	je	LBB0_8
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	testl	%eax, %eax
	jle	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r12d, %r12d
	xorl	%ecx, %ecx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=2
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	incl	%ecx
	movl	4(%r13), %eax
	addl	$4, %r12d
	cmpl	%eax, %ecx
	jge	LBB0_7
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	movq	8(%r13), %rax
	movq	16(%r13), %rcx
	movq	(%rcx), %rcx
	movq	(%rdi), %rsi
	movl	(%rax), %ebx
	imull	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	movl	(%rsi), %eax
	addl	%ebx, %eax
	addl	%r12d, %eax
	cltq
	movl	(%rcx,%rax,4), %r14d
	movl	4(%rsi), %eax
	addl	%ebx, %eax
	addl	%r12d, %eax
	cltq
	movl	(%rcx,%rax,4), %edx
	movl	8(%rsi), %eax
	addl	%ebx, %eax
	addl	%r12d, %eax
	cltq
	movl	(%rcx,%rax,4), %ecx
	movl	%r14d, %esi
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
                                        ## kill: def $edx killed $edx killed $rdx
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r15
	callq	_do_colorkey_pixel
	movq	%r15, %rdi
	testl	%eax, %eax
	jle	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	leal	(%r15,%r14), %ecx
	movl	-52(%rbp), %r11d                ## 4-byte Reload
	addl	%r11d, %ecx
	movslq	%ecx, %rcx
	imulq	$1431655766, %rcx, %rcx         ## imm = 0x55555556
	movq	%rcx, %rdx
	shrq	$63, %rdx
	shrq	$32, %rcx
	addl	%edx, %ecx
	movl	$255, %edx
	subl	%eax, %edx
	imull	%eax, %ecx
	imull	%edx, %r14d
	leal	(%rcx,%r14), %esi
	addl	$127, %esi
	sarl	$8, %esi
	movq	16(%r13), %rax
	movq	(%rax), %r8
	movq	(%rdi), %r10
	movl	(%r10), %eax
	addl	%ebx, %eax
	addl	%r12d, %eax
	cltq
	movl	%esi, (%r8,%rax,4)
	imull	%edx, %r15d
	leal	(%rcx,%r15), %eax
	addl	$127, %eax
	sarl	$8, %eax
	movl	4(%r10), %esi
	addl	%ebx, %esi
	addl	%r12d, %esi
	movslq	%esi, %rsi
	movl	%eax, (%r8,%rsi,4)
	imull	%r11d, %edx
	leal	(%rcx,%rdx), %eax
	addl	$127, %eax
	addl	8(%r10), %ebx
	sarl	$8, %eax
	addl	%r12d, %ebx
	movslq	%ebx, %rcx
	movl	%eax, (%r8,%rcx,4)
	jmp	LBB0_6
LBB0_8:
	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_colorhold_slice
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_colorhold_slice
_do_colorhold_slice:                    ; @do_colorhold_slice
	.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
	ldr	w8, [x1]
	mul	w9, w8, w2
	sdiv	w24, w9, w3
	add	w8, w8, w9
	sdiv	w8, w8, w3
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	cmp	w24, w8
	b.ge	LBB0_8
; %bb.1:
	mov	x19, x1
	ldr	x20, [x0]
	ldr	w8, [x1, #4]
	orr	w28, wzr, #0x7f
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w24, w24, #1
	ldr	w9, [sp, #12]                   ; 4-byte Folded Reload
	cmp	w24, w9
	b.eq	LBB0_8
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w25, #0
	mov	w26, #0
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	add	w26, w26, #1
	ldr	w8, [x19, #4]
	add	w25, w25, #4
	cmp	w26, w8
	b.ge	LBB0_2
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	x8, x9, [x19, #8]
	ldr	w8, [x8]
	ldr	x9, [x9]
	ldr	x10, [x20]
	mul	w27, w24, w8
	ldp	w8, w11, [x10]
	add	w8, w8, w27
	add	w8, w25, w8
	ldr	w23, [x9, w8, sxtw #2]
	add	w8, w11, w27
	add	w8, w25, w8
	ldr	w22, [x9, w8, sxtw #2]
	ldr	w8, [x10, #8]
	add	w8, w8, w27
	add	w8, w25, w8
	ldr	w21, [x9, w8, sxtw #2]
	mov	x0, x20
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	bl	_do_colorkey_pixel
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	add	w8, w22, w23
	add	w8, w8, w21
	mov	w9, #21846
	movk	w9, #21845, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	lsr	x8, x8, #32
	add	w8, w8, w9
	mov	w9, #255
	sub	w9, w9, w0
	madd	w8, w8, w0, w28
	madd	w10, w9, w23, w8
	asr	w10, w10, #8
	ldr	x11, [x19, #16]
	ldr	x11, [x11]
	ldr	x12, [x20]
	ldr	w13, [x12]
	add	w13, w13, w27
	add	w13, w25, w13
	str	w10, [x11, w13, sxtw #2]
	madd	w10, w9, w22, w8
	asr	w10, w10, #8
	ldr	w13, [x12, #4]
	add	w13, w13, w27
	add	w13, w25, w13
	str	w10, [x11, w13, sxtw #2]
	madd	w8, w9, w21, w8
	asr	w8, w8, #8
	ldr	w9, [x12, #8]
	add	w9, w9, w27
	add	w9, w25, w9
	str	w8, [x11, w9, sxtw #2]
	b	LBB0_5
LBB0_8:
	mov	w0, #0
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_do_colorhold_slice
.subsections_via_symbols
