	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_lumakey_slice8
_do_lumakey_slice8:                     ## @do_lumakey_slice8
	.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
	.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, %r9d
	incl	%r8d
	imull	%ebx, %r8d
	movl	%r8d, %eax
	cltd
	idivl	%ecx
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cmpl	%eax, %r9d
	jge	LBB0_15
## %bb.1:
	movq	(%rdi), %rax
	movq	16(%rsi), %rcx
	movl	(%rax), %r11d
	movl	4(%rax), %r14d
	movl	8(%rax), %ebx
	movq	8(%rsi), %r8
	movl	(%rcx), %r10d
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	12(%rcx), %ecx
	movl	%r10d, %edi
	imull	%r9d, %edi
	movslq	%edi, %rdi
	shlq	$2, %rdi
	addq	(%r8), %rdi
	movl	%r9d, %edx
	imull	%ecx, %edx
	movslq	%edx, %r15
	shlq	$2, %r15
	addq	24(%r8), %r15
	movl	%ebx, %r12d
	subl	%r11d, %r12d
	leal	(%r14,%r11), %r13d
	movl	%r11d, %r8d
	subl	%ebx, %r8d
	movl	24(%rsi), %edx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r10d
	movl	12(%rax), %ecx
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r10d, %rax
	leaq	(%rdi,%rax,4), %rdi
	movslq	%ecx, %rax
	leaq	(%r15,%rax,4), %r15
	incl	%r9d
	cmpl	-44(%rbp), %r9d                 ## 4-byte Folded Reload
	je	LBB0_15
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	testl	%edx, %edx
	jle	LBB0_14
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r10d, %r10d
	jmp	LBB0_4
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=2
	subl	%r14d, %ecx
	movl	%ecx, %eax
	shll	$8, %eax
	subl	%ecx, %eax
	cltd
	idivl	%r11d
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=2
	movl	%eax, (%r15,%r10,4)
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=2
	incq	%r10
	movslq	24(%rsi), %rdx
	cmpq	%rdx, %r10
	jge	LBB0_13
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rdi,%r10,4), %ecx
	cmpl	%ebx, %ecx
	jl	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	xorl	%eax, %eax
	cmpl	%r14d, %ecx
	jle	LBB0_11
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=2
	cmpl	%r12d, %ecx
	jle	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=2
	cmpl	%r13d, %ecx
	jge	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=2
	cmpl	%ebx, %ecx
	jge	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=2
	addl	%r8d, %ecx
	movl	%ecx, %eax
	shll	$8, %eax
	subl	%ecx, %eax
	cltd
	idivl	%r11d
	movl	%eax, %ecx
	movl	$255, %eax
	subl	%ecx, %eax
	jmp	LBB0_11
LBB0_15:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_do_lumakey_slice8
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_lumakey_slice8
_do_lumakey_slice8:                     ; @do_lumakey_slice8
	.cfi_startproc
; %bb.0:
	ldr	w9, [x1]
	mul	w10, w9, w2
	sdiv	w8, w10, w3
	add	w9, w9, w10
	sdiv	w9, w9, w3
	cmp	w8, w9
	b.ge	LBB0_14
; %bb.1:
	ldr	x12, [x0]
	ldp	w10, w11, [x12]
	ldr	w12, [x12, #8]
	ldp	x15, x13, [x1, #8]
	ldr	x14, [x15]
	ldr	w3, [x13]
	mul	w16, w3, w8
	add	x14, x14, w16, sxtw #2
	ldr	x15, [x15, #24]
	ldr	w5, [x13, #12]
	mul	w16, w5, w8
	add	x15, x15, w16, sxtw #2
	sub	w16, w12, w10
	add	w17, w11, w10
	sub	w0, w10, w12
	ldr	w4, [x1, #24]
	mov	w2, #255
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w3, [x13]
	ldr	w5, [x13, #12]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x14, x14, w3, sxtw #2
	add	x15, x15, w5, sxtw #2
	add	w8, w8, #1
	cmp	w8, w9
	b.eq	LBB0_14
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	cmp	w4, #1
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x3, #0
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_9 Depth=2
	mov	w4, #0
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=2
	str	w4, [x15, x3, lsl #2]
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=2
	add	x3, x3, #1
	ldrsw	x4, [x1, #24]
	cmp	x3, x4
	b.ge	LBB0_2
LBB0_9:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w4, [x14, x3, lsl #2]
	cmp	w4, w12
	ccmp	w4, w11, #0, ge
	b.le	LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	cmp	w4, w16
	ccmp	w4, w17, #0, gt
	b.ge	LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=2
	cmp	w4, w12
	b.ge	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=2
	add	w4, w0, w4
	lsl	w5, w4, #8
	sub	w4, w5, w4
	sdiv	w4, w4, w10
	sub	w4, w2, w4
	b	LBB0_7
LBB0_13:                                ;   in Loop: Header=BB0_9 Depth=2
	sub	w4, w4, w11
	lsl	w5, w4, #8
	sub	w4, w5, w4
	sdiv	w4, w4, w10
	b	LBB0_7
LBB0_14:
	mov	w0, #0
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_do_lumakey_slice8
.subsections_via_symbols
