	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rpf_configure_partition
_rpf_configure_partition:               ## @rpf_configure_partition
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	callq	_to_rwpf
	movq	%rax, %r15
	movq	40(%rax), %r14
	movq	8(%rax), %r13
	movq	32(%rax), %r12
	movl	(%rax), %esi
	movq	%rax, %rdi
	callq	_vsp1_rwpf_get_crop
	movl	4(%rax), %edx
	cmpl	$2, (%rbx)
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	jl	LBB0_1
## %bb.2:
	movq	16(%rbx), %rcx
	addl	8(%rcx), %edx
	jmp	LBB0_3
LBB0_1:
	movq	%rax, %rcx
LBB0_3:
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	8(%rax), %r14d
	movl	12(%rax), %eax
	movl	(%rcx), %r13d
	cmpq	$0, 8(%rbx)
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_5
## %bb.4:
	movl	%r14d, %edi
	shrl	$31, %edi
	addl	%r14d, %edi
	sarl	%edi
	movl	24(%r12), %esi
	movq	%rax, %rbx
	callq	_round_down
	movq	%rax, %r14
	movl	%ebx, %edi
	shrl	$31, %edi
	addl	%ebx, %edi
	sarl	%edi
	movl	24(%r12), %esi
	callq	_round_down
LBB0_5:
	movq	%rax, %rbx
	movq	_VI6_RPF_SRC_BSIZE_BHSIZE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	%r13d, %esi
	shll	%cl, %esi
	movq	_VI6_RPF_SRC_BSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_VI6_RPF_SRC_BSIZE_BVSIZE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	%r14d, %eax
	shll	%cl, %eax
	orl	%esi, %eax
	movq	%r15, %rdi
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rsi
	movl	%eax, %ecx
	callq	_vsp1_rpf_write
	movq	_VI6_RPF_SRC_ESIZE_EHSIZE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r13d
	movq	_VI6_RPF_SRC_ESIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_VI6_RPF_SRC_ESIZE_EVSIZE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r14d
	orl	%r13d, %r14d
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%r14d, %ecx
	callq	_vsp1_rpf_write
	movq	24(%r15), %r9
	movl	(%r9), %edx
	imull	%ebx, %edx
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %r8
	movl	(%r8), %esi
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	imull	%eax, %esi
	leal	7(%rsi), %edi
	testl	%esi, %esi
	cmovnsl	%esi, %edi
	sarl	$3, %edi
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	addl	(%r12), %edx
	addl	%edi, %edx
	movl	%edx, (%r12)
	cmpl	$2, 16(%r15)
	movq	%rcx, %rsi
	jl	LBB0_7
## %bb.6:
	imull	4(%r9), %ebx
	cltd
	idivl	8(%rsi)
                                        ## kill: def $eax killed $eax def $rax
	imull	4(%r8), %eax
	leal	7(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$3, %ecx
	addl	%ebx, %ecx
	addl	%ecx, 4(%r12)
	addl	%ecx, 8(%r12)
LBB0_7:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	cmpl	$3, (%rax)
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_11
## %bb.8:
	cmpl	$3, 16(%r15)
	jne	LBB0_11
## %bb.9:
	cmpq	$0, 16(%rsi)
	je	LBB0_11
## %bb.10:
	movl	4(%r12), %edi
	movl	8(%r12), %esi
	callq	_swap
LBB0_11:
	cmpq	$0, 8(%r14)
	je	LBB0_13
## %bb.12:
	movq	%r15, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vsp1_rpf_configure_autofld     ## TAILCALL
LBB0_13:
	movq	_VI6_RPF_SRCM_ADDR_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r12), %ecx
	movq	%r15, %rdi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_vsp1_rpf_write
	movq	_VI6_RPF_SRCM_ADDR_C0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	4(%r12), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_vsp1_rpf_write
	movq	_VI6_RPF_SRCM_ADDR_C1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	8(%r12), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vsp1_rpf_write                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VI6_RPF_SRC_BSIZE,4,2          ## @VI6_RPF_SRC_BSIZE
	.comm	_VI6_RPF_SRC_BSIZE_BHSIZE_SHIFT,4,2 ## @VI6_RPF_SRC_BSIZE_BHSIZE_SHIFT
	.comm	_VI6_RPF_SRC_BSIZE_BVSIZE_SHIFT,4,2 ## @VI6_RPF_SRC_BSIZE_BVSIZE_SHIFT
	.comm	_VI6_RPF_SRC_ESIZE,4,2          ## @VI6_RPF_SRC_ESIZE
	.comm	_VI6_RPF_SRC_ESIZE_EHSIZE_SHIFT,4,2 ## @VI6_RPF_SRC_ESIZE_EHSIZE_SHIFT
	.comm	_VI6_RPF_SRC_ESIZE_EVSIZE_SHIFT,4,2 ## @VI6_RPF_SRC_ESIZE_EVSIZE_SHIFT
	.comm	_VI6_RPF_SRCM_ADDR_Y,4,2        ## @VI6_RPF_SRCM_ADDR_Y
	.comm	_VI6_RPF_SRCM_ADDR_C0,4,2       ## @VI6_RPF_SRCM_ADDR_C0
	.comm	_VI6_RPF_SRCM_ADDR_C1,4,2       ## @VI6_RPF_SRCM_ADDR_C1
	.no_dead_strip	_rpf_configure_partition
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rpf_configure_partition
_rpf_configure_partition:               ; @rpf_configure_partition
	.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
	mov	x19, x3
	str	x2, [sp, #8]                    ; 8-byte Folded Spill
	mov	x22, x1
	bl	_to_rwpf
	mov	x20, x0
	ldr	x27, [x0, #8]
	ldp	x26, x25, [x0, #32]
	ldr	w1, [x0]
	bl	_vsp1_rwpf_get_crop
	ldr	w28, [x0, #4]
	ldr	w8, [x22]
	cmp	w8, #2
	b.lt	LBB0_2
; %bb.1:
	ldr	x8, [x22, #16]
	ldr	w9, [x8, #8]
	add	w28, w28, w9
	b	LBB0_3
LBB0_2:
	mov	x8, x0
LBB0_3:
	ldp	w24, w23, [x0, #8]
	ldr	w21, [x8]
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_5
; %bb.4:
	cmp	w24, #0
	cinc	w8, w24, lt
	asr	w0, w8, #1
	ldr	w1, [x26, #24]
	bl	_round_down
	mov	x24, x0
	cmp	w23, #0
	cinc	w8, w23, lt
	asr	w0, w8, #1
	ldr	w1, [x26, #24]
	bl	_round_down
	mov	x23, x0
LBB0_5:
Lloh0:
	adrp	x8, _VI6_RPF_SRC_BSIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VI6_RPF_SRC_BSIZE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _VI6_RPF_SRC_BSIZE_BHSIZE_SHIFT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VI6_RPF_SRC_BSIZE_BHSIZE_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	w8, w21, w8
Lloh6:
	adrp	x9, _VI6_RPF_SRC_BSIZE_BVSIZE_SHIFT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _VI6_RPF_SRC_BSIZE_BVSIZE_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	lsl	w9, w24, w9
	orr	w3, w9, w8
	mov	x0, x20
	mov	x1, x19
	bl	_vsp1_rpf_write
Lloh9:
	adrp	x8, _VI6_RPF_SRC_ESIZE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VI6_RPF_SRC_ESIZE@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
Lloh12:
	adrp	x8, _VI6_RPF_SRC_ESIZE_EHSIZE_SHIFT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VI6_RPF_SRC_ESIZE_EHSIZE_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	lsl	w8, w21, w8
Lloh15:
	adrp	x9, _VI6_RPF_SRC_ESIZE_EVSIZE_SHIFT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _VI6_RPF_SRC_ESIZE_EVSIZE_SHIFT@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	lsl	w9, w24, w9
	orr	w3, w9, w8
	mov	x0, x20
	mov	x1, x19
	bl	_vsp1_rpf_write
	ldr	x9, [x20, #24]
	ldr	w10, [x9]
	ldr	x8, [x26]
	ldr	w11, [x8]
	mul	w11, w11, w28
	add	w12, w11, #7
	cmp	w11, #0
	csel	w11, w12, w11, lt
	ldr	w12, [x25]
	madd	w10, w10, w23, w12
	add	w10, w10, w11, asr #3
	str	w10, [x25]
	ldr	w10, [x20, #16]
	cmp	w10, #2
	b.lt	LBB0_7
; %bb.6:
	ldr	w9, [x9, #4]
	mul	w9, w9, w23
	ldr	w10, [x26, #8]
	sdiv	w10, w28, w10
	ldr	w8, [x8, #4]
	mul	w8, w8, w10
	add	w10, w8, #7
	cmp	w8, #0
	csel	w8, w10, w8, lt
	add	w8, w9, w8, asr #3
	ldur	d0, [x25, #4]
	dup.2s	v1, w8
	add.2s	v0, v1, v0
	stur	d0, [x25, #4]
LBB0_7:
	ldr	x8, [x27]
	ldr	w8, [x8]
	cmp	w8, #3
	b.ne	LBB0_11
; %bb.8:
	ldr	w8, [x20, #16]
	cmp	w8, #3
	b.ne	LBB0_11
; %bb.9:
	ldr	x8, [x26, #16]
	cbz	x8, LBB0_11
; %bb.10:
	ldp	w0, w1, [x25, #4]
	bl	_swap
LBB0_11:
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_13
; %bb.12:
	mov	x0, x20
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	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
	b	_vsp1_rpf_configure_autofld
LBB0_13:
Lloh18:
	adrp	x8, _VI6_RPF_SRCM_ADDR_Y@GOTPAGE
Lloh19:
	ldr	x8, [x8, _VI6_RPF_SRCM_ADDR_Y@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	ldr	w3, [x25]
	mov	x0, x20
	mov	x1, x19
	bl	_vsp1_rpf_write
Lloh21:
	adrp	x8, _VI6_RPF_SRCM_ADDR_C0@GOTPAGE
Lloh22:
	ldr	x8, [x8, _VI6_RPF_SRCM_ADDR_C0@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	ldr	w3, [x25, #4]
	mov	x0, x20
	mov	x1, x19
	bl	_vsp1_rpf_write
Lloh24:
	adrp	x8, _VI6_RPF_SRCM_ADDR_C1@GOTPAGE
Lloh25:
	ldr	x8, [x8, _VI6_RPF_SRCM_ADDR_C1@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	ldr	w3, [x25, #8]
	mov	x0, x20
	mov	x1, x19
	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
	b	_vsp1_rpf_write
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_VI6_RPF_SRC_BSIZE,4,2          ; @VI6_RPF_SRC_BSIZE
	.comm	_VI6_RPF_SRC_BSIZE_BHSIZE_SHIFT,4,2 ; @VI6_RPF_SRC_BSIZE_BHSIZE_SHIFT
	.comm	_VI6_RPF_SRC_BSIZE_BVSIZE_SHIFT,4,2 ; @VI6_RPF_SRC_BSIZE_BVSIZE_SHIFT
	.comm	_VI6_RPF_SRC_ESIZE,4,2          ; @VI6_RPF_SRC_ESIZE
	.comm	_VI6_RPF_SRC_ESIZE_EHSIZE_SHIFT,4,2 ; @VI6_RPF_SRC_ESIZE_EHSIZE_SHIFT
	.comm	_VI6_RPF_SRC_ESIZE_EVSIZE_SHIFT,4,2 ; @VI6_RPF_SRC_ESIZE_EVSIZE_SHIFT
	.comm	_VI6_RPF_SRCM_ADDR_Y,4,2        ; @VI6_RPF_SRCM_ADDR_Y
	.comm	_VI6_RPF_SRCM_ADDR_C0,4,2       ; @VI6_RPF_SRCM_ADDR_C0
	.comm	_VI6_RPF_SRCM_ADDR_C1,4,2       ; @VI6_RPF_SRCM_ADDR_C1
	.no_dead_strip	_rpf_configure_partition
.subsections_via_symbols
