	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fdp1_configure_wpf
_fdp1_configure_wpf:                    ## @fdp1_configure_wpf
	.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
	movq	%rdi, %r13
	movq	40(%rdi), %rax
	movl	(%rax), %edx
	movq	_FD1_WPF_PSTRIDE_Y_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	cmpl	$2, 16(%rdi)
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	jl	LBB0_2
## %bb.1:
	movl	4(%rax), %eax
	movq	_FD1_WPF_PSTRIDE_C_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	orl	%eax, %edx
LBB0_2:
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	8(%r13), %rdi
	xorl	%eax, %eax
	cmpq	$0, 16(%rdi)
	movl	$0, %r15d
	je	LBB0_4
## %bb.3:
	movq	_FD1_WPF_FORMAT_WSPYCS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
LBB0_4:
	orl	(%rdi), %r15d
	cmpq	$0, 8(%rdi)
	je	LBB0_6
## %bb.5:
	movq	_FD1_WPF_FORMAT_WSPUVS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:
	orl	%eax, %r15d
	movq	88(%r13), %r12
	callq	_fdp1_fmt_is_rgb
	testq	%rax, %rax
	je	LBB0_13
## %bb.7:
	movq	_FD1_WPF_FORMAT_CSC@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movq	64(%r13), %rax
	movq	_V4L2_YCBCR_ENC_709@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.8:
	movq	_FD1_WPF_FORMAT_WRTM_709_16@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_9:
	movq	72(%r13), %rax
	movq	_V4L2_QUANTIZATION_FULL_RANGE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.10:
	movq	_FD1_WPF_FORMAT_WRTM_601_0@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_11:
	movq	_FD1_WPF_FORMAT_WRTM_601_16@GOTPCREL(%rip), %rax
LBB0_12:
	orl	(%rax), %r15d
LBB0_13:
	movl	(%r13), %esi
	movq	_FD1_WPF_FORMAT_PDV_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %esi
	movq	_FD1_WPF_RNDCTL_CBRM@GOTPCREL(%rip), %rax
	movq	_FD1_WPF_RNDCTL_CLMD_NOCLIP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	orl	(%rax), %r14d
	movq	8(%r13), %rax
	movl	4(%rax), %eax
	movq	_FD1_WPF_SWAP_OSWAP_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	_FD1_WPF_SWAP_SSWAP_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movq	48(%r13), %rdx
	movl	4(%rdx), %ebx
	shll	%cl, %ebx
	orl	%r15d, %esi
	orl	%eax, %ebx
	movq	_FD1_WPF_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_fdp1_write
	movq	_FD1_WPF_RNDCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_fdp1_write
	movq	_FD1_WPF_SWAP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_fdp1_write
	movq	_FD1_WPF_PSTRIDE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_fdp1_write
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	movq	_FD1_WPF_ADDR_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_fdp1_write
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movl	4(%rax), %esi
	movq	_FD1_WPF_ADDR_C0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_fdp1_write
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movl	8(%rax), %esi
	movq	_FD1_WPF_ADDR_C1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fdp1_write                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FD1_WPF_PSTRIDE_Y_SHIFT,4,2    ## @FD1_WPF_PSTRIDE_Y_SHIFT
	.comm	_FD1_WPF_PSTRIDE_C_SHIFT,4,2    ## @FD1_WPF_PSTRIDE_C_SHIFT
	.comm	_FD1_WPF_FORMAT_WSPYCS,4,2      ## @FD1_WPF_FORMAT_WSPYCS
	.comm	_FD1_WPF_FORMAT_WSPUVS,4,2      ## @FD1_WPF_FORMAT_WSPUVS
	.comm	_FD1_WPF_FORMAT_CSC,4,2         ## @FD1_WPF_FORMAT_CSC
	.comm	_V4L2_YCBCR_ENC_709,8,3         ## @V4L2_YCBCR_ENC_709
	.comm	_FD1_WPF_FORMAT_WRTM_709_16,4,2 ## @FD1_WPF_FORMAT_WRTM_709_16
	.comm	_V4L2_QUANTIZATION_FULL_RANGE,8,3 ## @V4L2_QUANTIZATION_FULL_RANGE
	.comm	_FD1_WPF_FORMAT_WRTM_601_0,4,2  ## @FD1_WPF_FORMAT_WRTM_601_0
	.comm	_FD1_WPF_FORMAT_WRTM_601_16,4,2 ## @FD1_WPF_FORMAT_WRTM_601_16
	.comm	_FD1_WPF_FORMAT_PDV_SHIFT,4,2   ## @FD1_WPF_FORMAT_PDV_SHIFT
	.comm	_FD1_WPF_RNDCTL_CBRM,4,2        ## @FD1_WPF_RNDCTL_CBRM
	.comm	_FD1_WPF_RNDCTL_CLMD_NOCLIP,4,2 ## @FD1_WPF_RNDCTL_CLMD_NOCLIP
	.comm	_FD1_WPF_SWAP_OSWAP_SHIFT,4,2   ## @FD1_WPF_SWAP_OSWAP_SHIFT
	.comm	_FD1_WPF_SWAP_SSWAP_SHIFT,4,2   ## @FD1_WPF_SWAP_SSWAP_SHIFT
	.comm	_FD1_WPF_FORMAT,4,2             ## @FD1_WPF_FORMAT
	.comm	_FD1_WPF_RNDCTL,4,2             ## @FD1_WPF_RNDCTL
	.comm	_FD1_WPF_SWAP,4,2               ## @FD1_WPF_SWAP
	.comm	_FD1_WPF_PSTRIDE,4,2            ## @FD1_WPF_PSTRIDE
	.comm	_FD1_WPF_ADDR_Y,4,2             ## @FD1_WPF_ADDR_Y
	.comm	_FD1_WPF_ADDR_C0,4,2            ## @FD1_WPF_ADDR_C0
	.comm	_FD1_WPF_ADDR_C1,4,2            ## @FD1_WPF_ADDR_C1
	.no_dead_strip	_fdp1_configure_wpf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fdp1_configure_wpf
_fdp1_configure_wpf:                    ; @fdp1_configure_wpf
	.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	x20, x1
	mov	x22, x0
	ldr	x19, [x0, #88]
	ldr	x8, [x0, #40]
	ldr	w9, [x8]
Lloh0:
	adrp	x10, _FD1_WPF_PSTRIDE_Y_SHIFT@GOTPAGE
Lloh1:
	ldr	x10, [x10, _FD1_WPF_PSTRIDE_Y_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	lsl	w21, w9, w10
	ldr	w9, [x0, #16]
	cmp	w9, #2
	b.lt	LBB0_2
; %bb.1:
	ldr	w8, [x8, #4]
Lloh3:
	adrp	x9, _FD1_WPF_PSTRIDE_C_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FD1_WPF_PSTRIDE_C_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	lsl	w8, w8, w9
	orr	w21, w8, w21
LBB0_2:
	ldr	x0, [x22, #8]
	ldr	w8, [x0]
Lloh6:
	adrp	x9, _FD1_WPF_FORMAT_WSPYCS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _FD1_WPF_FORMAT_WSPYCS@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	ldp	x11, x10, [x0, #8]
	cmp	x10, #0
	csel	w9, wzr, w9, eq
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _FD1_WPF_FORMAT_WSPUVS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _FD1_WPF_FORMAT_WSPUVS@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	x11, #0
	csel	w9, wzr, w9, eq
	orr	w23, w8, w9
	bl	_fdp1_fmt_is_rgb
	cbz	x0, LBB0_9
; %bb.3:
Lloh12:
	adrp	x8, _FD1_WPF_FORMAT_CSC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FD1_WPF_FORMAT_CSC@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	orr	w8, w8, w23
	ldr	x9, [x22, #64]
Lloh15:
	adrp	x10, _V4L2_YCBCR_ENC_709@GOTPAGE
Lloh16:
	ldr	x10, [x10, _V4L2_YCBCR_ENC_709@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_5
; %bb.4:
Lloh18:
	adrp	x9, _FD1_WPF_FORMAT_WRTM_709_16@GOTPAGE
Lloh19:
	ldr	x9, [x9, _FD1_WPF_FORMAT_WRTM_709_16@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
	ldr	x9, [x22, #72]
Lloh20:
	adrp	x10, _V4L2_QUANTIZATION_FULL_RANGE@GOTPAGE
Lloh21:
	ldr	x10, [x10, _V4L2_QUANTIZATION_FULL_RANGE@GOTPAGEOFF]
Lloh22:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_7
; %bb.6:
Lloh23:
	adrp	x9, _FD1_WPF_FORMAT_WRTM_601_0@GOTPAGE
Lloh24:
	ldr	x9, [x9, _FD1_WPF_FORMAT_WRTM_601_0@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh25:
	adrp	x9, _FD1_WPF_FORMAT_WRTM_601_16@GOTPAGE
Lloh26:
	ldr	x9, [x9, _FD1_WPF_FORMAT_WRTM_601_16@GOTPAGEOFF]
LBB0_8:
	ldr	w9, [x9]
	orr	w23, w9, w8
LBB0_9:
	ldr	w8, [x22]
Lloh27:
	adrp	x9, _FD1_WPF_FORMAT_PDV_SHIFT@GOTPAGE
Lloh28:
	ldr	x9, [x9, _FD1_WPF_FORMAT_PDV_SHIFT@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	lsl	w8, w8, w9
	orr	w1, w8, w23
Lloh30:
	adrp	x8, _FD1_WPF_RNDCTL_CBRM@GOTPAGE
Lloh31:
	ldr	x8, [x8, _FD1_WPF_RNDCTL_CBRM@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
Lloh33:
	adrp	x9, _FD1_WPF_RNDCTL_CLMD_NOCLIP@GOTPAGE
Lloh34:
	ldr	x9, [x9, _FD1_WPF_RNDCTL_CLMD_NOCLIP@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	orr	w23, w9, w8
	ldr	x8, [x22, #8]
	ldr	w8, [x8, #4]
Lloh36:
	adrp	x9, _FD1_WPF_SWAP_OSWAP_SHIFT@GOTPAGE
Lloh37:
	ldr	x9, [x9, _FD1_WPF_SWAP_OSWAP_SHIFT@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	lsl	w8, w8, w9
	ldr	x9, [x22, #48]
	ldr	w9, [x9, #4]
Lloh39:
	adrp	x10, _FD1_WPF_SWAP_SSWAP_SHIFT@GOTPAGE
Lloh40:
	ldr	x10, [x10, _FD1_WPF_SWAP_SSWAP_SHIFT@GOTPAGEOFF]
Lloh41:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w22, w9, w8
Lloh42:
	adrp	x8, _FD1_WPF_FORMAT@GOTPAGE
Lloh43:
	ldr	x8, [x8, _FD1_WPF_FORMAT@GOTPAGEOFF]
Lloh44:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_fdp1_write
Lloh45:
	adrp	x8, _FD1_WPF_RNDCTL@GOTPAGE
Lloh46:
	ldr	x8, [x8, _FD1_WPF_RNDCTL@GOTPAGEOFF]
Lloh47:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x23
	bl	_fdp1_write
Lloh48:
	adrp	x8, _FD1_WPF_SWAP@GOTPAGE
Lloh49:
	ldr	x8, [x8, _FD1_WPF_SWAP@GOTPAGEOFF]
Lloh50:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x22
	bl	_fdp1_write
Lloh51:
	adrp	x8, _FD1_WPF_PSTRIDE@GOTPAGE
Lloh52:
	ldr	x8, [x8, _FD1_WPF_PSTRIDE@GOTPAGEOFF]
Lloh53:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x21
	bl	_fdp1_write
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	w1, [x8]
Lloh54:
	adrp	x8, _FD1_WPF_ADDR_Y@GOTPAGE
Lloh55:
	ldr	x8, [x8, _FD1_WPF_ADDR_Y@GOTPAGEOFF]
Lloh56:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_fdp1_write
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	w1, [x8, #4]
Lloh57:
	adrp	x8, _FD1_WPF_ADDR_C0@GOTPAGE
Lloh58:
	ldr	x8, [x8, _FD1_WPF_ADDR_C0@GOTPAGEOFF]
Lloh59:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_fdp1_write
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	w1, [x8, #8]
Lloh60:
	adrp	x8, _FD1_WPF_ADDR_C1@GOTPAGE
Lloh61:
	ldr	x8, [x8, _FD1_WPF_ADDR_C1@GOTPAGEOFF]
Lloh62:
	ldr	w2, [x8]
	mov	x0, x19
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.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
	.cfi_endproc
                                        ; -- End function
	.comm	_FD1_WPF_PSTRIDE_Y_SHIFT,4,2    ; @FD1_WPF_PSTRIDE_Y_SHIFT
	.comm	_FD1_WPF_PSTRIDE_C_SHIFT,4,2    ; @FD1_WPF_PSTRIDE_C_SHIFT
	.comm	_FD1_WPF_FORMAT_WSPYCS,4,2      ; @FD1_WPF_FORMAT_WSPYCS
	.comm	_FD1_WPF_FORMAT_WSPUVS,4,2      ; @FD1_WPF_FORMAT_WSPUVS
	.comm	_FD1_WPF_FORMAT_CSC,4,2         ; @FD1_WPF_FORMAT_CSC
	.comm	_V4L2_YCBCR_ENC_709,8,3         ; @V4L2_YCBCR_ENC_709
	.comm	_FD1_WPF_FORMAT_WRTM_709_16,4,2 ; @FD1_WPF_FORMAT_WRTM_709_16
	.comm	_V4L2_QUANTIZATION_FULL_RANGE,8,3 ; @V4L2_QUANTIZATION_FULL_RANGE
	.comm	_FD1_WPF_FORMAT_WRTM_601_0,4,2  ; @FD1_WPF_FORMAT_WRTM_601_0
	.comm	_FD1_WPF_FORMAT_WRTM_601_16,4,2 ; @FD1_WPF_FORMAT_WRTM_601_16
	.comm	_FD1_WPF_FORMAT_PDV_SHIFT,4,2   ; @FD1_WPF_FORMAT_PDV_SHIFT
	.comm	_FD1_WPF_RNDCTL_CBRM,4,2        ; @FD1_WPF_RNDCTL_CBRM
	.comm	_FD1_WPF_RNDCTL_CLMD_NOCLIP,4,2 ; @FD1_WPF_RNDCTL_CLMD_NOCLIP
	.comm	_FD1_WPF_SWAP_OSWAP_SHIFT,4,2   ; @FD1_WPF_SWAP_OSWAP_SHIFT
	.comm	_FD1_WPF_SWAP_SSWAP_SHIFT,4,2   ; @FD1_WPF_SWAP_SSWAP_SHIFT
	.comm	_FD1_WPF_FORMAT,4,2             ; @FD1_WPF_FORMAT
	.comm	_FD1_WPF_RNDCTL,4,2             ; @FD1_WPF_RNDCTL
	.comm	_FD1_WPF_SWAP,4,2               ; @FD1_WPF_SWAP
	.comm	_FD1_WPF_PSTRIDE,4,2            ; @FD1_WPF_PSTRIDE
	.comm	_FD1_WPF_ADDR_Y,4,2             ; @FD1_WPF_ADDR_Y
	.comm	_FD1_WPF_ADDR_C0,4,2            ; @FD1_WPF_ADDR_C0
	.comm	_FD1_WPF_ADDR_C1,4,2            ; @FD1_WPF_ADDR_C1
	.no_dead_strip	_fdp1_configure_wpf
.subsections_via_symbols
