	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function convert_frame_partial
_convert_frame_partial:                 ## @convert_frame_partial
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%edx, %ebx
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_NUM_CHANNELS@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leaq	(,%r15,4), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	_NUM_CELLS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %eax
	imull	%ebx, %eax
	cltd
	idivl	%r14d
	movl	%eax, %esi
	incl	%ebx
	imull	%ecx, %ebx
	movl	%ebx, %eax
	cltd
	idivl	%r14d
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	cmpl	%eax, %esi
	jge	LBB0_17
## %bb.1:
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	16(%rcx), %rax
	movl	(%rax), %edx
	movl	%edx, -72(%rbp)                 ## 4-byte Spill
	movl	4(%rax), %edx
	movl	%edx, -68(%rbp)                 ## 4-byte Spill
	movslq	(%rcx), %r13
	movq	16(%rax), %rcx
	movq	(%rcx), %rcx
	movq	8(%rax), %rax
	movslq	(%rax), %rax
	addq	$16, %rcx
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	movq	%r13, %rcx
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	imulq	%rax, %rcx
	shlq	$3, %rcx
	movq	%rcx, -128(%rbp)                ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	incl	%eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	cmpl	-76(%rbp), %eax                 ## 4-byte Folded Reload
	je	LBB0_17
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
                                        ##       Child Loop BB0_8 Depth 3
                                        ##     Child Loop BB0_13 Depth 2
	movq	_GRID_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	cltd
	idivl	%ecx
	movl	%eax, %ebx
	movl	%edx, %edi
	movl	%edx, %eax
	movl	-72(%rbp), %esi                 ## 4-byte Reload
	imull	%esi, %eax
	cltd
	idivl	%ecx
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	%rdi, %rax
	movq	%rdi, -120(%rbp)                ## 8-byte Spill
	leal	1(%rdi), %eax
	imull	%esi, %eax
	cltd
	idivl	%ecx
	movl	%eax, %r14d
	movl	%ebx, %eax
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	imull	%esi, %eax
	cltd
	idivl	%ecx
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rax
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	leal	1(%rbx), %eax
	imull	%esi, %eax
	cltd
	idivl	%ecx
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	testl	%r15d, %r15d
	jle	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r15d, %esi
	shlq	$2, %rsi
	movq	%r12, %rdi
	callq	___bzero
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, -60(%rbp)                 ## 4-byte Folded Reload
	movl	-64(%rbp), %eax                 ## 4-byte Reload
	jge	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r15d, %ecx
	imull	%eax, %ecx
	movslq	%ecx, %rcx
	movl	%r13d, %eax
	imull	%r15d, %eax
	movslq	%eax, %r11
	movslq	-60(%rbp), %r9                  ## 4-byte Folded Reload
	movslq	-56(%rbp), %r8                  ## 4-byte Folded Reload
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	imulq	%r9, %rdx
	addq	%rcx, %rdx
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rcx,%rdx,8), %r10
	movl	-64(%rbp), %eax                 ## 4-byte Reload
	shlq	$3, %r11
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=2
	addq	%r13, %r9
	addq	-128(%rbp), %r10                ## 8-byte Folded Reload
	cmpq	%r8, %r9
	jge	LBB0_11
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_8 Depth 3
	cmpl	%r14d, %eax
	jge	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movl	(%r12), %ebx
	movl	4(%r12), %edx
	movl	8(%r12), %edi
	movq	%r10, %rsi
	movl	%eax, %ecx
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_6 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	addl	-16(%rsi), %ebx
	addl	-8(%rsi), %edx
	addl	(%rsi), %edi
	addl	%r13d, %ecx
	addq	%r11, %rsi
	cmpl	%r14d, %ecx
	jl	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=2
	movl	%ebx, (%r12)
	movl	%edx, 4(%r12)
	movl	%edi, 8(%r12)
	movl	-64(%rbp), %eax                 ## 4-byte Reload
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	notl	%eax
	addl	%r13d, %eax
	addl	%r14d, %eax
	cltd
	idivl	%r13d
	movl	%eax, %esi
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	notl	%eax
	addl	%r13d, %eax
	addl	-56(%rbp), %eax                 ## 4-byte Folded Reload
	cltd
	idivl	%r13d
	testl	%r15d, %r15d
	jle	LBB0_16
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %ecx
	imull	%esi, %ecx
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	(%rax), %rax
	movslq	-112(%rbp), %rdx                ## 4-byte Folded Reload
	movq	(%rax,%rdx,8), %rax
	movslq	-120(%rbp), %rdx                ## 4-byte Folded Reload
	movq	(%rax,%rdx,8), %rsi
	xorl	%edi, %edi
	movq	_NUM_CHANNELS@GOTPCREL(%rip), %rbx
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=2
	movl	%eax, (%rsi,%rdi,4)
	incq	%rdi
	movslq	(%rbx), %r15
	cmpq	%r15, %rdi
	jge	LBB0_16
LBB0_13:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r12,%rdi,4), %eax
	testl	%ecx, %ecx
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=2
	cltd
	idivl	%ecx
	movl	%eax, (%r12,%rdi,4)
	jmp	LBB0_15
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_19
## %bb.18:
	xorl	%eax, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_CHANNELS,4,2               ## @NUM_CHANNELS
	.comm	_NUM_CELLS,4,2                  ## @NUM_CELLS
	.comm	_GRID_SIZE,4,2                  ## @GRID_SIZE
	.no_dead_strip	_convert_frame_partial
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function convert_frame_partial
_convert_frame_partial:                 ; @convert_frame_partial
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #32
	stur	x1, [x29, #-96]                 ; 8-byte Folded Spill
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x21, _NUM_CHANNELS@GOTPAGE
Lloh4:
	ldr	x21, [x21, _NUM_CHANNELS@GOTPAGEOFF]
	ldr	w27, [x21]
	lsl	x8, x27, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x20, x9, x8
	mov	sp, x20
Lloh7:
	adrp	x8, _NUM_CELLS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _NUM_CELLS@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	mul	w9, w8, w2
	sdiv	w22, w9, w3
	add	w8, w8, w9
	sdiv	w23, w8, w3
	cmp	w22, w23
	b.ge	LBB0_17
; %bb.1:
	ldur	x9, [x29, #-96]                 ; 8-byte Folded Reload
	ldr	x8, [x9, #16]
	ldp	w24, w25, [x8]
	ldrsw	x26, [x9]
	ldp	x8, x9, [x8, #8]
	ldr	x9, [x9]
	ldrsw	x8, [x8]
	add	x9, x9, #16
	stp	x9, x8, [x29, #-112]            ; 16-byte Folded Spill
	mul	x8, x26, x8
	lsl	x28, x8, #3
                                        ; kill: def $w27 killed $w27 killed $x27 def $x27
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w22, w22, #1
	cmp	w22, w23
	b.eq	LBB0_17
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;       Child Loop BB0_10 Depth 3
                                        ;     Child Loop BB0_15 Depth 2
Lloh10:
	adrp	x8, _GRID_SIZE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GRID_SIZE@GOTPAGEOFF]
Lloh12:
	ldr	w19, [x8]
	cmp	w27, #1
	b.lt	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w8, w27
	lsl	x1, x8, #2
	mov	x0, x20
	bl	_bzero
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	sdiv	w8, w22, w19
	msub	w9, w8, w19, w22
	mul	w11, w9, w24
	sdiv	w10, w11, w19
	add	w11, w24, w11
	sdiv	w11, w11, w19
	mul	w13, w8, w25
	sdiv	w12, w13, w19
	add	w13, w25, w13
	sdiv	w13, w13, w19
	cmp	w12, w13
	b.ge	LBB0_12
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mul	w16, w27, w10
	mul	w17, w27, w26
	sxtw	x14, w12
	sxtw	x15, w13
	ldur	x0, [x29, #-104]                ; 8-byte Folded Reload
	mul	x0, x0, x14
	add	x16, x0, w16, sxtw
	ldur	x0, [x29, #-112]                ; 8-byte Folded Reload
	add	x16, x0, x16, lsl #3
	sbfiz	x17, x17, #3, #32
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	add	x16, x16, x28
	add	x14, x14, x26
	cmp	x14, x15
	b.ge	LBB0_12
LBB0_8:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_10 Depth 3
	cmp	w10, w11
	b.ge	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	d0, [x20]
	ldr	w0, [x20, #8]
	mov	x1, x16
	mov	x2, x10
LBB0_10:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_8 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldur	q1, [x1, #-16]
	xtn.2s	v1, v1
	add.2s	v0, v0, v1
	ldr	w3, [x1]
	add	w0, w0, w3
	add	x1, x1, x17
	add	w2, w2, w26
	cmp	w2, w11
	b.lt	LBB0_10
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=2
	str	d0, [x20]
	str	w0, [x20, #8]
	b	LBB0_7
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w27, #1
	b.lt	LBB0_2
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x14, #0
	mvn	w10, w10
	add	w10, w26, w10
	add	w10, w10, w11
	sdiv	w10, w10, w26
	mvn	w11, w12
	add	w11, w26, w11
	add	w11, w11, w13
	sdiv	w11, w11, w26
	mul	w10, w11, w10
	ldur	x11, [x29, #-96]                ; 8-byte Folded Reload
	ldr	x11, [x11, #8]
	ldr	x11, [x11]
	ldr	x8, [x11, w8, sxtw #3]
	ldr	x8, [x8, w9, sxtw #3]
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=2
	str	w9, [x8, x14, lsl #2]
	add	x14, x14, #1
	ldrsw	x27, [x21]
	cmp	x14, x27
	b.ge	LBB0_2
LBB0_15:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w9, [x20, x14, lsl #2]
	cbz	w10, LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=2
	sdiv	w9, w9, w10
	str	w9, [x20, x14, lsl #2]
	b	LBB0_14
LBB0_17:
	ldur	x8, [x29, #-88]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.18:
	mov	w0, #0
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_CHANNELS,4,2               ; @NUM_CHANNELS
	.comm	_NUM_CELLS,4,2                  ; @NUM_CELLS
	.comm	_GRID_SIZE,4,2                  ; @GRID_SIZE
	.no_dead_strip	_convert_frame_partial
.subsections_via_symbols
