	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function interpolate_refplane
_interpolate_refplane:                  ## @interpolate_refplane
	.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
                                        ## kill: def $r8d killed $r8d def $r8
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	_EDGE_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %r14d
	shrl	$31, %r14d
	addl	%eax, %r14d
	sarl	%r14d
	movq	8(%rsi), %rax
	movq	16(%rsi), %rbx
	movq	8(%rax), %rsi
	movslq	%edx, %r12
	movq	(%rsi,%r12,8), %rdi
	movq	(%rbx,%r12,8), %rdx
	movq	%rdi, (%rdx)
	movq	(%rax), %rax
	movl	(%rax,%r12,4), %esi
	movq	_EDGE_TOP@GOTPCREL(%rip), %rdx
	movq	_EDGE_BOTTOM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rdx), %eax
	movl	%eax, (%rsp)
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, %edx
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movl	%r8d, %ecx
	movl	%r14d, %r8d
	movl	%r14d, %r9d
	callq	*(%r15)
	cmpl	$0, 16(%r15)
	je	LBB0_10
## %bb.1:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leal	(%rax,%r14,2), %ebx
	movq	24(%r13), %rax
	movq	(%rax,%r12,8), %rcx
	movq	8(%rcx), %rax
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	8(%r13), %rax
	movq	(%rax), %rax
	movl	(%rax,%r12,4), %edi
	imull	%ebx, %edi
	addl	$32, %edi
	callq	_av_malloc
	movq	24(%r13), %rcx
	movq	(%rcx,%r12,8), %rcx
	movq	%rax, 8(%rcx)
	testq	%rax, %rax
	je	LBB0_11
LBB0_3:
	movq	8(%r13), %rdx
	movq	16(%r13), %rsi
	movq	(%rdx), %rdx
	movl	(%rdx,%r12,4), %edi
	movl	%edi, %edx
	imull	%r14d, %edx
	movslq	%edx, %rdx
	addq	%rdx, %rax
	addq	$16, %rax
	movq	(%rsi,%r12,8), %rdx
	movq	%rax, 8(%rdx)
	movq	16(%rcx), %rax
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	imull	%ebx, %edi
	addl	$32, %edi
	callq	_av_malloc
	movq	24(%r13), %rcx
	movq	(%rcx,%r12,8), %rcx
	movq	%rax, 16(%rcx)
	testq	%rax, %rax
	je	LBB0_11
LBB0_5:
	movq	8(%r13), %rdx
	movq	16(%r13), %rsi
	movq	(%rdx), %rdx
	movl	(%rdx,%r12,4), %edi
	movl	%edi, %edx
	imull	%r14d, %edx
	movslq	%edx, %rdx
	addq	%rdx, %rax
	addq	$16, %rax
	movq	(%rsi,%r12,8), %rdx
	movq	%rax, 16(%rdx)
	movq	24(%rcx), %rax
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	imull	%ebx, %edi
	addl	$32, %edi
	callq	_av_malloc
	movq	24(%r13), %rcx
	movq	(%rcx,%r12,8), %rcx
	movq	%rax, 24(%rcx)
	testq	%rax, %rax
	je	LBB0_11
LBB0_7:
	movq	8(%r13), %rcx
	movq	16(%r13), %rsi
	movq	(%rcx), %rcx
	movl	(%rcx,%r12,4), %r8d
	movl	%r8d, %ecx
	imull	%r14d, %ecx
	movslq	%ecx, %rcx
	leaq	(%rax,%rcx), %rdx
	addq	$16, %rdx
	movq	(%rsi,%r12,8), %rax
	movq	%rdx, 24(%rax)
	movq	(%r13), %rcx
	cmpl	$0, (%rcx,%r12,4)
	jne	LBB0_9
## %bb.8:
	movq	(%rax), %rcx
	movq	8(%rax), %rdi
	movq	16(%rax), %rsi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, (%rsp)
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %r9d
	callq	*8(%r15)
	movq	8(%r13), %rax
	movq	16(%r13), %rcx
	movq	(%rcx,%r12,8), %rcx
	movq	8(%rcx), %rdi
	movq	(%rax), %rax
	movl	(%rax,%r12,4), %esi
	movq	_EDGE_BOTTOM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_EDGE_TOP@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%rsp)
	movl	%ebx, %edx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	%ebx, %ecx
	movl	%r14d, %r8d
	movl	%r14d, %r9d
	callq	*(%r15)
	movq	8(%r13), %rax
	movq	16(%r13), %rcx
	movq	(%rcx,%r12,8), %rcx
	movq	16(%rcx), %rdi
	movq	(%rax), %rax
	movl	(%rax,%r12,4), %esi
	movq	_EDGE_BOTTOM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_EDGE_TOP@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%rsp)
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%ebx, %ecx
	movl	%r14d, %r8d
	movl	%r14d, %r9d
	callq	*(%r15)
	movq	8(%r13), %rax
	movq	16(%r13), %rcx
	movq	(%rcx,%r12,8), %rcx
	movq	24(%rcx), %rdi
	movq	(%rax), %rax
	movl	(%rax,%r12,4), %esi
	movq	_EDGE_BOTTOM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_EDGE_TOP@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%rsp)
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%ebx, %ecx
	movl	%r14d, %r8d
	movl	%r14d, %r9d
	callq	*(%r15)
	movq	(%r13), %rcx
LBB0_9:
	movl	$1, (%rcx,%r12,4)
LBB0_10:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EDGE_WIDTH,4,2                 ## @EDGE_WIDTH
	.comm	_EDGE_TOP,4,2                   ## @EDGE_TOP
	.comm	_EDGE_BOTTOM,4,2                ## @EDGE_BOTTOM
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_interpolate_refplane
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function interpolate_refplane
_interpolate_refplane:                  ; @interpolate_refplane
	.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
	mov	x20, x4
	mov	x21, x3
	mov	x24, x2
	mov	x19, x1
	mov	x22, x0
	sbfiz	x8, x24, #3, #32
Lloh0:
	adrp	x9, _EDGE_WIDTH@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EDGE_WIDTH@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w9, #0
	cinc	w9, w9, lt
	ldp	x10, x11, [x1, #8]
	ldp	x10, x12, [x10]
	ldr	x0, [x12, x8]
	ldr	x8, [x11, x8]
	asr	w23, w9, #1
	str	x0, [x8]
	ldr	w1, [x10, w2, sxtw #2]
Lloh3:
	adrp	x25, _EDGE_TOP@GOTPAGE
Lloh4:
	ldr	x25, [x25, _EDGE_TOP@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	w9, [x25]
Lloh5:
	adrp	x26, _EDGE_BOTTOM@GOTPAGE
Lloh6:
	ldr	x26, [x26, _EDGE_BOTTOM@GOTPAGEOFF]
	ldr	w10, [x26]
	orr	w6, w10, w9
	mov	x2, x3
	mov	x3, x4
	mov	x4, x23
	mov	x5, x23
	blr	x8
	ldr	w8, [x22, #16]
	cbz	w8, LBB0_10
; %bb.1:
	sxtw	x24, w24
	add	w27, w20, w23, lsl #1
	ldr	x8, [x19, #24]
	ldr	x8, [x8, x24, lsl #3]
	ldr	x0, [x8, #8]
	cbnz	x0, LBB0_3
; %bb.2:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	w8, [x8, x24, lsl #2]
	orr	w9, wzr, #0x20
	madd	w0, w8, w27, w9
	bl	_av_malloc
	ldr	x8, [x19, #24]
	ldr	x8, [x8, x24, lsl #3]
	str	x0, [x8, #8]
	cbz	x0, LBB0_11
LBB0_3:
	ldp	x9, x10, [x19, #8]
	ldr	x9, [x9]
	ldr	w9, [x9, x24, lsl #2]
	mul	w11, w9, w23
	add	x11, x0, w11, sxtw
	add	x11, x11, #16
	ldr	x10, [x10, x24, lsl #3]
	str	x11, [x10, #8]
	ldr	x0, [x8, #16]
	cbnz	x0, LBB0_5
; %bb.4:
	orr	w8, wzr, #0x20
	madd	w0, w9, w27, w8
	bl	_av_malloc
	ldr	x8, [x19, #24]
	ldr	x8, [x8, x24, lsl #3]
	str	x0, [x8, #16]
	cbz	x0, LBB0_11
LBB0_5:
	ldp	x9, x10, [x19, #8]
	ldr	x9, [x9]
	ldr	w9, [x9, x24, lsl #2]
	mul	w11, w9, w23
	add	x11, x0, w11, sxtw
	add	x11, x11, #16
	ldr	x10, [x10, x24, lsl #3]
	str	x11, [x10, #16]
	ldr	x0, [x8, #24]
	cbnz	x0, LBB0_7
; %bb.6:
	orr	w8, wzr, #0x20
	madd	w0, w9, w27, w8
	bl	_av_malloc
	ldr	x8, [x19, #24]
	ldr	x8, [x8, x24, lsl #3]
	str	x0, [x8, #24]
	cbz	x0, LBB0_11
LBB0_7:
	ldp	x8, x9, [x19]
	ldr	x9, [x9]
	lsl	x27, x24, #2
	ldr	w4, [x9, x27]
	mul	w9, w4, w23
	add	x9, x0, w9, sxtw
	add	x2, x9, #16
	ldr	x9, [x19, #16]
	ldr	x9, [x9, x24, lsl #3]
	str	x2, [x9, #24]
	ldr	w10, [x8, x27]
	cbnz	w10, LBB0_9
; %bb.8:
	ldr	x8, [x22, #8]
	ldp	x0, x1, [x9, #8]
	ldr	x3, [x9]
	mov	x5, x21
	mov	x6, x20
	blr	x8
	ldr	x8, [x22]
	lsl	x28, x24, #3
	ldp	x10, x9, [x19, #8]
	ldr	x9, [x9, x28]
	ldr	x0, [x9, #8]
	ldr	x9, [x10]
	ldr	w1, [x9, x27]
	ldr	w9, [x25]
	ldr	w10, [x26]
	orr	w6, w10, w9
	mov	x2, x21
	mov	x3, x20
	mov	x4, x23
	mov	x5, x23
	blr	x8
	ldr	x8, [x22]
	ldp	x10, x9, [x19, #8]
	ldr	x9, [x9, x28]
	ldr	x0, [x9, #16]
	ldr	x9, [x10]
	ldr	w1, [x9, x27]
	ldr	w9, [x25]
	ldr	w10, [x26]
	orr	w6, w10, w9
	mov	x2, x21
	mov	x3, x20
	mov	x4, x23
	mov	x5, x23
	blr	x8
	ldr	x8, [x22]
	ldp	x10, x9, [x19, #8]
	ldr	x9, [x9, x28]
	ldr	x0, [x9, #24]
	ldr	x9, [x10]
	ldr	w1, [x9, x27]
	ldr	w9, [x25]
	ldr	w10, [x26]
	orr	w6, w10, w9
	mov	x2, x21
	mov	x3, x20
	mov	x4, x23
	mov	x5, x23
	blr	x8
	ldr	x8, [x19]
LBB0_9:
	mov	w9, #1
	str	w9, [x8, x24, lsl #2]
LBB0_10:
	mov	w0, #0
	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_11:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	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
	b	_AVERROR
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EDGE_WIDTH,4,2                 ; @EDGE_WIDTH
	.comm	_EDGE_TOP,4,2                   ; @EDGE_TOP
	.comm	_EDGE_BOTTOM,4,2                ; @EDGE_BOTTOM
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_interpolate_refplane
.subsections_via_symbols
