	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_chromakey_slice
_do_chromakey_slice:                    ## @do_chromakey_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	$152, %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, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	(%rsi), %esi
	movl	%esi, %eax
	imull	%edx, %eax
	cltd
	idivl	%ecx
	movl	%eax, %r14d
	incl	%ebx
	imull	%esi, %ebx
	movl	%ebx, %eax
	cltd
	idivl	%ecx
	movl	%eax, %r15d
	movq	(%rdi), %r13
	movq	8(%r13), %rax
	movl	(%rax), %esi
	leaq	-96(%rbp), %rdi
	movl	$36, %edx
	callq	_memset
	movq	8(%r13), %rax
	movl	4(%rax), %esi
	leaq	-144(%rbp), %rdi
	movl	$36, %edx
	callq	_memset
	movl	%r15d, -156(%rbp)               ## 4-byte Spill
	cmpl	%r15d, %r14d
	jge	LBB0_7
## %bb.1:
	movl	4(%r12), %eax
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%r14d
	cmpl	-156(%rbp), %r14d               ## 4-byte Folded Reload
	je	LBB0_7
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	testl	%eax, %eax
	jle	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	-1(%r14), %eax
	movl	%eax, -164(%rbp)                ## 4-byte Spill
	leal	1(%r14), %eax
	movl	%eax, -160(%rbp)                ## 4-byte Spill
	xorl	%ebx, %ebx
	movq	%r14, -152(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r13), %edx
	movl	4(%r13), %esi
	leal	-1(%rbx), %r15d
	leaq	-144(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%rbx, -184(%rbp)                ## 8-byte Spill
	movq	%r12, %rdi
	movl	%r15d, %ecx
	movl	-164(%rbp), %r14d               ## 4-byte Reload
	movl	%r14d, %r8d
	leaq	-96(%rbp), %r9
	callq	_get_pixel_uv
	movl	(%r13), %edx
	movl	4(%r13), %esi
	leaq	-140(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%r12, %rdi
	movl	%ebx, %ecx
	movl	%r14d, %r8d
	leaq	-92(%rbp), %r9
	callq	_get_pixel_uv
	movl	(%r13), %edx
	movl	4(%r13), %esi
	leaq	1(%rbx), %rcx
	movq	%rcx, -176(%rbp)                ## 8-byte Spill
	leaq	-136(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%r12, %rdi
                                        ## kill: def $ecx killed $ecx killed $rcx
	movl	%r14d, %r8d
	leaq	-88(%rbp), %r9
	callq	_get_pixel_uv
	movl	(%r13), %edx
	movl	4(%r13), %esi
	leaq	-132(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%r12, %rdi
	movl	%r15d, %ecx
	movq	-152(%rbp), %rbx                ## 8-byte Reload
	movl	%ebx, %r8d
	leaq	-84(%rbp), %r9
	callq	_get_pixel_uv
	movl	(%r13), %edx
	movl	4(%r13), %esi
	leaq	-128(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%r12, %rdi
	movq	-184(%rbp), %r14                ## 8-byte Reload
	movl	%r14d, %ecx
	movl	%ebx, %r8d
	leaq	-80(%rbp), %r9
	callq	_get_pixel_uv
	movl	(%r13), %edx
	movl	4(%r13), %esi
	leaq	-124(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%r12, %rdi
	movq	-176(%rbp), %rcx                ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	movl	%ebx, %r8d
	leaq	-76(%rbp), %r9
	callq	_get_pixel_uv
	movl	(%r13), %edx
	movl	4(%r13), %esi
	leaq	-120(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%r12, %rdi
	movl	%r15d, %ecx
	movl	-160(%rbp), %r15d               ## 4-byte Reload
	movl	%r15d, %r8d
	leaq	-72(%rbp), %r9
	callq	_get_pixel_uv
	movl	(%r13), %edx
	movl	4(%r13), %esi
	leaq	-116(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%r12, %rdi
	movl	%r14d, %ecx
	movq	%r14, %rbx
	movl	%r15d, %r8d
	leaq	-68(%rbp), %r9
	callq	_get_pixel_uv
	movl	(%r13), %edx
	movl	4(%r13), %esi
	leaq	-112(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%r12, %rdi
	movq	-176(%rbp), %r14                ## 8-byte Reload
	movl	%r14d, %ecx
	movl	%r15d, %r8d
	leaq	-64(%rbp), %r9
	callq	_get_pixel_uv
	movq	%r13, %rdi
	leaq	-96(%rbp), %rsi
	leaq	-144(%rbp), %rdx
	callq	_do_chromakey_pixel
	movq	8(%r12), %rcx
	movq	16(%r12), %rdx
	movq	24(%rdx), %rdx
	movslq	12(%rcx), %rcx
	movslq	-152(%rbp), %rsi                ## 4-byte Folded Reload
	imulq	%rcx, %rsi
	addq	%rbx, %rsi
	movl	%eax, (%rdx,%rsi,4)
	movslq	4(%r12), %rax
	movq	%r14, %rbx
	cmpq	%rax, %r14
	jl	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-152(%rbp), %r14                ## 8-byte Reload
	jmp	LBB0_6
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	xorl	%eax, %eax
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_do_chromakey_slice
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_chromakey_slice
_do_chromakey_slice:                    ; @do_chromakey_slice
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #304
	.cfi_def_cfa_offset 304
	stp	x28, x27, [sp, #208]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #224]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #240]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #256]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #272]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #288]            ; 16-byte Folded Spill
	add	x29, sp, #288
	.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
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	ldr	w8, [x1]
	mul	w9, w8, w2
	sdiv	w20, w9, w3
	add	w8, w8, w9
	ldr	x21, [x0]
	ldr	x9, [x21, #8]
	ldr	w1, [x9]
	sdiv	w24, w8, w3
	sub	x22, x29, #132
	sub	x0, x29, #132
	mov	w2, #36
	bl	_memset
	ldr	x8, [x21, #8]
	ldr	w1, [x8, #4]
	add	x23, sp, #120
	add	x0, sp, #120
	mov	w2, #36
	bl	_memset
	str	w24, [sp, #4]                   ; 4-byte Folded Spill
	cmp	w20, w24
	b.ge	LBB0_6
; %bb.1:
	add	x27, x22, #4
	add	x10, x23, #4
	ldr	w8, [x19, #4]
	add	x11, x22, #8
	add	x12, x23, #8
	add	x13, x22, #12
	add	x14, x23, #12
	add	x15, x22, #16
	add	x16, x23, #16
	add	x17, x22, #20
	add	x0, x23, #20
	add	x28, x22, #24
	add	x1, x23, #24
	add	x2, x22, #28
	add	x3, x23, #28
	add	x4, x22, #32
	add	x23, x23, #32
	stp	x10, x27, [sp, #104]            ; 16-byte Folded Spill
	stp	x12, x11, [sp, #88]             ; 16-byte Folded Spill
	stp	x14, x13, [sp, #72]             ; 16-byte Folded Spill
	stp	x16, x15, [sp, #56]             ; 16-byte Folded Spill
	stp	x0, x17, [sp, #40]              ; 16-byte Folded Spill
	stp	x2, x1, [sp, #24]               ; 16-byte Folded Spill
	stp	x4, x3, [sp, #8]                ; 16-byte Folded Spill
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w20, w20, #1
	ldr	w9, [sp, #4]                    ; 4-byte Folded Reload
	cmp	w20, w9
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x26, #0
	sub	w24, w20, #1
	add	w25, w20, #1
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	w2, w1, [x21]
	mov	x22, x28
	sub	w28, w26, #1
	sub	x5, x29, #132
	add	x6, sp, #120
	mov	x0, x19
	mov	x3, x28
	mov	x4, x24
	bl	_get_pixel_uv
	ldp	w2, w1, [x21]
	mov	x0, x19
	mov	x3, x26
	mov	x4, x24
	mov	x5, x27
	ldr	x6, [sp, #104]                  ; 8-byte Folded Reload
	bl	_get_pixel_uv
	ldp	w2, w1, [x21]
	add	x27, x26, #1
	mov	x0, x19
	mov	x3, x27
	mov	x4, x24
	ldp	x6, x5, [sp, #88]               ; 16-byte Folded Reload
	bl	_get_pixel_uv
	ldp	w2, w1, [x21]
	mov	x0, x19
	mov	x3, x28
	mov	x4, x20
	ldp	x6, x5, [sp, #72]               ; 16-byte Folded Reload
	bl	_get_pixel_uv
	ldp	w2, w1, [x21]
	mov	x0, x19
	mov	x3, x26
	mov	x4, x20
	ldp	x6, x5, [sp, #56]               ; 16-byte Folded Reload
	bl	_get_pixel_uv
	ldp	w2, w1, [x21]
	mov	x0, x19
	mov	x3, x27
	mov	x4, x20
	ldp	x6, x5, [sp, #40]               ; 16-byte Folded Reload
	bl	_get_pixel_uv
	ldp	w2, w1, [x21]
	mov	x0, x19
	mov	x3, x28
	mov	x28, x22
	mov	x4, x25
	mov	x5, x22
	ldr	x6, [sp, #32]                   ; 8-byte Folded Reload
	bl	_get_pixel_uv
	ldp	w2, w1, [x21]
	mov	x0, x19
	mov	x3, x26
	mov	x4, x25
	ldp	x6, x5, [sp, #16]               ; 16-byte Folded Reload
	bl	_get_pixel_uv
	ldp	w2, w1, [x21]
	mov	x0, x19
	mov	x3, x27
	mov	x4, x25
	ldr	x5, [sp, #8]                    ; 8-byte Folded Reload
	mov	x6, x23
	bl	_get_pixel_uv
	sub	x1, x29, #132
	add	x2, sp, #120
	mov	x0, x21
	bl	_do_chromakey_pixel
	ldp	x9, x8, [x19, #8]
	ldr	x8, [x8, #24]
	ldrsw	x9, [x9, #12]
	sxtw	x10, w20
	madd	x9, x10, x9, x26
	str	w0, [x8, x9, lsl #2]
	ldrsw	x8, [x19, #4]
	mov	x26, x27
	cmp	x27, x8
	ldr	x27, [sp, #112]                 ; 8-byte Folded Reload
	b.lt	LBB0_5
	b	LBB0_2
LBB0_6:
	ldur	x8, [x29, #-96]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	mov	w0, #0
	ldp	x29, x30, [sp, #288]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #272]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #256]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #240]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #224]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #208]            ; 16-byte Folded Reload
	add	sp, sp, #304
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_do_chromakey_slice
.subsections_via_symbols
