	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fdp1_configure_rpf
_fdp1_configure_rpf:                    ## @fdp1_configure_rpf
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	40(%rdi), %eax
	movq	_FD1_RPF_SIZE_H_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	_FD1_RPF_SIZE_V_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	16(%rdi), %r12d
	movl	20(%rdi), %r14d
	shll	%cl, %r12d
	movq	_FD1_RPF_PSTRIDE_Y_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %r14d
	movq	%rsi, %r15
	cmpl	$2, 44(%rdi)
	jl	LBB0_2
## %bb.1:
	movl	24(%rbx), %edx
	movq	_FD1_RPF_PSTRIDE_C_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	orl	%edx, %r14d
LBB0_2:
	movq	32(%rbx), %rsi
	xorl	%edx, %edx
	cmpq	$0, 16(%rsi)
	movl	$0, %ecx
	je	LBB0_4
## %bb.3:
	movq	_FD1_RPF_FORMAT_RSPYCS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_4:
	orl	(%rsi), %ecx
	cmpq	$0, 8(%rsi)
	je	LBB0_6
## %bb.5:
	movq	_FD1_RPF_FORMAT_RSPUVS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_6:
	orl	%edx, %ecx
	movq	8(%r15), %rdx
	movq	(%rdx), %rdx
	movq	_V4L2_FIELD_BOTTOM@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_8
## %bb.7:
	movq	_FD1_RPF_FORMAT_CF@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movq	(%rbx), %rdx
	jmp	LBB0_9
LBB0_8:
	movq	(%rbx), %rdx
	addq	$4, %rdx
LBB0_9:
	movq	48(%rbx), %r13
	orl	%eax, %r12d
	movl	(%rdx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	xorl	%esi, %esi
	cmpq	$0, 8(%rbx)
	je	LBB0_11
## %bb.10:
	movq	_FD1_RPF_FORMAT_CIPM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_11:
	orl	%ecx, %esi
	movq	_FD1_RPF_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_fdp1_write
	movq	32(%rbx), %rax
	movl	4(%rax), %esi
	movq	_FD1_RPF_SWAP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_fdp1_write
	movq	_FD1_RPF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_fdp1_write
	movq	_FD1_RPF_PSTRIDE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_fdp1_write
	movq	_FD1_RPF_SMSK_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_fdp1_write
	movq	16(%r15), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	(%rax), %rax
	movl	(%rax), %esi
	movq	_FD1_RPF0_ADDR_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_fdp1_write
LBB0_13:
	movq	8(%r15), %rax
	movq	8(%rax), %rax
	movl	(%rax), %esi
	movq	_FD1_RPF1_ADDR_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_fdp1_write
	movq	8(%r15), %rax
	movq	8(%rax), %rax
	movl	4(%rax), %esi
	movq	_FD1_RPF1_ADDR_C0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_fdp1_write
	movq	8(%r15), %rax
	movq	8(%rax), %rax
	movl	8(%rax), %esi
	movq	_FD1_RPF1_ADDR_C1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_fdp1_write
	movq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_14
## %bb.15:
	movq	(%rax), %rax
	movl	(%rax), %esi
	movq	_FD1_RPF2_ADDR_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fdp1_write                     ## TAILCALL
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FD1_RPF_SIZE_H_SHIFT,4,2       ## @FD1_RPF_SIZE_H_SHIFT
	.comm	_FD1_RPF_SIZE_V_SHIFT,4,2       ## @FD1_RPF_SIZE_V_SHIFT
	.comm	_FD1_RPF_PSTRIDE_Y_SHIFT,4,2    ## @FD1_RPF_PSTRIDE_Y_SHIFT
	.comm	_FD1_RPF_PSTRIDE_C_SHIFT,4,2    ## @FD1_RPF_PSTRIDE_C_SHIFT
	.comm	_FD1_RPF_FORMAT_RSPYCS,4,2      ## @FD1_RPF_FORMAT_RSPYCS
	.comm	_FD1_RPF_FORMAT_RSPUVS,4,2      ## @FD1_RPF_FORMAT_RSPUVS
	.comm	_V4L2_FIELD_BOTTOM,8,3          ## @V4L2_FIELD_BOTTOM
	.comm	_FD1_RPF_FORMAT_CF,4,2          ## @FD1_RPF_FORMAT_CF
	.comm	_FD1_RPF_FORMAT_CIPM,4,2        ## @FD1_RPF_FORMAT_CIPM
	.comm	_FD1_RPF_FORMAT,4,2             ## @FD1_RPF_FORMAT
	.comm	_FD1_RPF_SWAP,4,2               ## @FD1_RPF_SWAP
	.comm	_FD1_RPF_SIZE,4,2               ## @FD1_RPF_SIZE
	.comm	_FD1_RPF_PSTRIDE,4,2            ## @FD1_RPF_PSTRIDE
	.comm	_FD1_RPF_SMSK_ADDR,4,2          ## @FD1_RPF_SMSK_ADDR
	.comm	_FD1_RPF0_ADDR_Y,4,2            ## @FD1_RPF0_ADDR_Y
	.comm	_FD1_RPF1_ADDR_Y,4,2            ## @FD1_RPF1_ADDR_Y
	.comm	_FD1_RPF1_ADDR_C0,4,2           ## @FD1_RPF1_ADDR_C0
	.comm	_FD1_RPF1_ADDR_C1,4,2           ## @FD1_RPF1_ADDR_C1
	.comm	_FD1_RPF2_ADDR_Y,4,2            ## @FD1_RPF2_ADDR_Y
	.no_dead_strip	_fdp1_configure_rpf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fdp1_configure_rpf
_fdp1_configure_rpf:                    ; @fdp1_configure_rpf
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _FD1_RPF_SIZE_H_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FD1_RPF_SIZE_H_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _FD1_RPF_SIZE_V_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FD1_RPF_SIZE_V_SHIFT@GOTPAGEOFF]
	ldp	w10, w11, [x0, #40]
	lsl	w8, w10, w8
Lloh5:
	ldr	w9, [x9]
	ldp	w10, w12, [x0, #16]
	lsl	w9, w10, w9
	orr	w23, w9, w8
Lloh6:
	adrp	x8, _FD1_RPF_PSTRIDE_Y_SHIFT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FD1_RPF_PSTRIDE_Y_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	lsl	w22, w12, w8
	ldr	x20, [x0, #48]
	cmp	w11, #2
	b.lt	LBB0_2
; %bb.1:
	ldr	w8, [x21, #24]
Lloh9:
	adrp	x9, _FD1_RPF_PSTRIDE_C_SHIFT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _FD1_RPF_PSTRIDE_C_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	lsl	w8, w8, w9
	orr	w22, w8, w22
LBB0_2:
	ldr	x8, [x21, #32]
	ldr	w9, [x8]
Lloh12:
	adrp	x10, _FD1_RPF_FORMAT_RSPYCS@GOTPAGE
Lloh13:
	ldr	x10, [x10, _FD1_RPF_FORMAT_RSPYCS@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	ldp	x8, x11, [x8, #8]
	cmp	x11, #0
	csel	w10, wzr, w10, eq
	orr	w9, w10, w9
Lloh15:
	adrp	x10, _FD1_RPF_FORMAT_RSPUVS@GOTPAGE
Lloh16:
	ldr	x10, [x10, _FD1_RPF_FORMAT_RSPUVS@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	cmp	x8, #0
	csel	w8, wzr, w10, eq
	orr	w8, w9, w8
	ldr	x9, [x19, #8]
	ldr	x9, [x9]
Lloh18:
	adrp	x10, _V4L2_FIELD_BOTTOM@GOTPAGE
Lloh19:
	ldr	x10, [x10, _V4L2_FIELD_BOTTOM@GOTPAGEOFF]
Lloh20:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.3:
Lloh21:
	adrp	x9, _FD1_RPF_FORMAT_CF@GOTPAGE
Lloh22:
	ldr	x9, [x9, _FD1_RPF_FORMAT_CF@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	x9, [x21]
	b	LBB0_5
LBB0_4:
	ldr	x9, [x21]
	add	x9, x9, #4
LBB0_5:
	ldr	w24, [x9]
	ldr	x9, [x21, #8]
Lloh24:
	adrp	x10, _FD1_RPF_FORMAT_CIPM@GOTPAGE
Lloh25:
	ldr	x10, [x10, _FD1_RPF_FORMAT_CIPM@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
	cmp	x9, #0
	csel	w9, wzr, w10, eq
	orr	w1, w9, w8
Lloh27:
	adrp	x8, _FD1_RPF_FORMAT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _FD1_RPF_FORMAT@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_fdp1_write
	ldr	x8, [x21, #32]
	ldr	w1, [x8, #4]
Lloh30:
	adrp	x8, _FD1_RPF_SWAP@GOTPAGE
Lloh31:
	ldr	x8, [x8, _FD1_RPF_SWAP@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_fdp1_write
Lloh33:
	adrp	x8, _FD1_RPF_SIZE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _FD1_RPF_SIZE@GOTPAGEOFF]
Lloh35:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x23
	bl	_fdp1_write
Lloh36:
	adrp	x8, _FD1_RPF_PSTRIDE@GOTPAGE
Lloh37:
	ldr	x8, [x8, _FD1_RPF_PSTRIDE@GOTPAGEOFF]
Lloh38:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x22
	bl	_fdp1_write
Lloh39:
	adrp	x8, _FD1_RPF_SMSK_ADDR@GOTPAGE
Lloh40:
	ldr	x8, [x8, _FD1_RPF_SMSK_ADDR@GOTPAGEOFF]
Lloh41:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x24
	bl	_fdp1_write
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	x8, [x8]
	ldr	w1, [x8]
Lloh42:
	adrp	x8, _FD1_RPF0_ADDR_Y@GOTPAGE
Lloh43:
	ldr	x8, [x8, _FD1_RPF0_ADDR_Y@GOTPAGEOFF]
Lloh44:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_fdp1_write
LBB0_7:
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
	ldr	w1, [x8]
Lloh45:
	adrp	x8, _FD1_RPF1_ADDR_Y@GOTPAGE
Lloh46:
	ldr	x8, [x8, _FD1_RPF1_ADDR_Y@GOTPAGEOFF]
Lloh47:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_fdp1_write
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
	ldr	w1, [x8, #4]
Lloh48:
	adrp	x8, _FD1_RPF1_ADDR_C0@GOTPAGE
Lloh49:
	ldr	x8, [x8, _FD1_RPF1_ADDR_C0@GOTPAGEOFF]
Lloh50:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_fdp1_write
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
	ldr	w1, [x8, #8]
Lloh51:
	adrp	x8, _FD1_RPF1_ADDR_C1@GOTPAGE
Lloh52:
	ldr	x8, [x8, _FD1_RPF1_ADDR_C1@GOTPAGEOFF]
Lloh53:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_fdp1_write
	ldr	x8, [x19]
	cbz	x8, LBB0_9
; %bb.8:
	ldr	x8, [x8]
	ldr	w1, [x8]
Lloh54:
	adrp	x8, _FD1_RPF2_ADDR_Y@GOTPAGE
Lloh55:
	ldr	x8, [x8, _FD1_RPF2_ADDR_Y@GOTPAGEOFF]
Lloh56:
	ldr	w2, [x8]
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_fdp1_write
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.cfi_endproc
                                        ; -- End function
	.comm	_FD1_RPF_SIZE_H_SHIFT,4,2       ; @FD1_RPF_SIZE_H_SHIFT
	.comm	_FD1_RPF_SIZE_V_SHIFT,4,2       ; @FD1_RPF_SIZE_V_SHIFT
	.comm	_FD1_RPF_PSTRIDE_Y_SHIFT,4,2    ; @FD1_RPF_PSTRIDE_Y_SHIFT
	.comm	_FD1_RPF_PSTRIDE_C_SHIFT,4,2    ; @FD1_RPF_PSTRIDE_C_SHIFT
	.comm	_FD1_RPF_FORMAT_RSPYCS,4,2      ; @FD1_RPF_FORMAT_RSPYCS
	.comm	_FD1_RPF_FORMAT_RSPUVS,4,2      ; @FD1_RPF_FORMAT_RSPUVS
	.comm	_V4L2_FIELD_BOTTOM,8,3          ; @V4L2_FIELD_BOTTOM
	.comm	_FD1_RPF_FORMAT_CF,4,2          ; @FD1_RPF_FORMAT_CF
	.comm	_FD1_RPF_FORMAT_CIPM,4,2        ; @FD1_RPF_FORMAT_CIPM
	.comm	_FD1_RPF_FORMAT,4,2             ; @FD1_RPF_FORMAT
	.comm	_FD1_RPF_SWAP,4,2               ; @FD1_RPF_SWAP
	.comm	_FD1_RPF_SIZE,4,2               ; @FD1_RPF_SIZE
	.comm	_FD1_RPF_PSTRIDE,4,2            ; @FD1_RPF_PSTRIDE
	.comm	_FD1_RPF_SMSK_ADDR,4,2          ; @FD1_RPF_SMSK_ADDR
	.comm	_FD1_RPF0_ADDR_Y,4,2            ; @FD1_RPF0_ADDR_Y
	.comm	_FD1_RPF1_ADDR_Y,4,2            ; @FD1_RPF1_ADDR_Y
	.comm	_FD1_RPF1_ADDR_C0,4,2           ; @FD1_RPF1_ADDR_C0
	.comm	_FD1_RPF1_ADDR_C1,4,2           ; @FD1_RPF1_ADDR_C1
	.comm	_FD1_RPF2_ADDR_Y,4,2            ; @FD1_RPF2_ADDR_Y
	.no_dead_strip	_fdp1_configure_rpf
.subsections_via_symbols
