	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function config_vpif_params
_config_vpif_params:                    ## @config_vpif_params
	.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
	testl	%edx, %edx
	jle	LBB0_9
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %r15
	addl	%esi, %edx
	movslq	%esi, %r12
	movslq	%edx, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_vpifregs@GOTPCREL(%rip), %rbx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_VPIF_DISPLAY_PIX_EN_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_vpif_set_bit
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %edi
	movq	%r13, %rbx
	movq	(%r13), %rax
	movl	4(%rax,%r12,8), %esi
	callq	_regw
	incq	%r12
	cmpq	-48(%rbp), %r12                 ## 8-byte Folded Reload
	jge	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_VPIF_DISPLAY_CH_NIP@GOTPCREL(%rip), %rax
	cmpl	$2, %r14d
	jge	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_VPIF_CAPTURE_CH_NIP@GOTPCREL(%rip), %rax
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %r13
	movq	(%rbx), %rcx
	movl	(%rcx,%r12,8), %ebx
	movl	(%rax), %esi
	movq	64(%r15), %rdx
	movl	%ebx, %edi
	callq	_vpif_wr_bit
	movq	_VPIF_CH_YC_MUX_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	56(%r15), %rdx
	movl	%ebx, %edi
	callq	_vpif_wr_bit
	movq	_VPIF_CH_INPUT_FIELD_FRAME_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%r15), %rdx
	movl	%ebx, %edi
	callq	_vpif_wr_bit
	movq	_VPIF_CH_SDR_FMT_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_vpif_clr_bit
	movq	_VPIF_CH_DATA_MODE_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	48(%r15), %rdx
	movl	%ebx, %edi
	callq	_vpif_wr_bit
	cmpl	$2, %r14d
	jge	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 48(%r15)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_VPIF_CH_FID_POLARITY_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	40(%r15), %rdx
	movl	%ebx, %edi
	callq	_vpif_wr_bit
	movq	_VPIF_CH_V_VALID_POLARITY_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	32(%r15), %rdx
	movl	%ebx, %edi
	callq	_vpif_wr_bit
	movq	_VPIF_CH_H_VALID_POLARITY_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	24(%r15), %rdx
	movl	%ebx, %edi
	callq	_vpif_wr_bit
	movl	%ebx, %edi
	callq	_regr
	movq	_VPIF_CH_DATA_WIDTH_BIT@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	movl	$3, %edx
	shll	%cl, %edx
	notl	%edx
	andl	%eax, %edx
	movl	16(%r15), %edi
	shll	%cl, %edi
	orl	%edx, %edi
	movl	%ebx, %esi
	callq	_regw
	jmp	LBB0_8
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_vpifregs,8,3                   ## @vpifregs
	.comm	_VPIF_CAPTURE_CH_NIP,4,2        ## @VPIF_CAPTURE_CH_NIP
	.comm	_VPIF_DISPLAY_CH_NIP,4,2        ## @VPIF_DISPLAY_CH_NIP
	.comm	_VPIF_CH_YC_MUX_BIT,4,2         ## @VPIF_CH_YC_MUX_BIT
	.comm	_VPIF_CH_INPUT_FIELD_FRAME_BIT,4,2 ## @VPIF_CH_INPUT_FIELD_FRAME_BIT
	.comm	_VPIF_CH_SDR_FMT_BIT,4,2        ## @VPIF_CH_SDR_FMT_BIT
	.comm	_VPIF_CH_DATA_MODE_BIT,4,2      ## @VPIF_CH_DATA_MODE_BIT
	.comm	_VPIF_DISPLAY_PIX_EN_BIT,4,2    ## @VPIF_DISPLAY_PIX_EN_BIT
	.comm	_VPIF_CH_FID_POLARITY_BIT,4,2   ## @VPIF_CH_FID_POLARITY_BIT
	.comm	_VPIF_CH_V_VALID_POLARITY_BIT,4,2 ## @VPIF_CH_V_VALID_POLARITY_BIT
	.comm	_VPIF_CH_H_VALID_POLARITY_BIT,4,2 ## @VPIF_CH_H_VALID_POLARITY_BIT
	.comm	_VPIF_CH_DATA_WIDTH_BIT,4,2     ## @VPIF_CH_DATA_WIDTH_BIT
	.no_dead_strip	_config_vpif_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function config_vpif_params
_config_vpif_params:                    ; @config_vpif_params
	.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
	cmp	w2, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _vpifregs@GOTPAGE
Lloh1:
	ldr	x22, [x22, _vpifregs@GOTPAGEOFF]
	add	w8, w2, w1
	sxtw	x24, w19
	sxtw	x25, w8
Lloh2:
	adrp	x28, _VPIF_CH_INPUT_FIELD_FRAME_BIT@GOTPAGE
Lloh3:
	ldr	x28, [x28, _VPIF_CH_INPUT_FIELD_FRAME_BIT@GOTPAGEOFF]
Lloh4:
	adrp	x23, _VPIF_CH_SDR_FMT_BIT@GOTPAGE
Lloh5:
	ldr	x23, [x23, _VPIF_CH_SDR_FMT_BIT@GOTPAGEOFF]
Lloh6:
	adrp	x26, _VPIF_CH_DATA_MODE_BIT@GOTPAGE
Lloh7:
	ldr	x26, [x26, _VPIF_CH_DATA_MODE_BIT@GOTPAGEOFF]
	sbfiz	x27, x19, #3, #32
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh8:
	adrp	x8, _VPIF_DISPLAY_PIX_EN_BIT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VPIF_DISPLAY_PIX_EN_BIT@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_vpif_set_bit
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x20]
	ldr	x8, [x22]
	add	x8, x8, x27
	ldr	w1, [x8, #4]
	bl	_regw
	add	x24, x24, #1
	add	x27, x27, #8
	cmp	x24, x25
	b.ge	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldr	w21, [x8, x27]
	cmp	w19, #2
Lloh11:
	adrp	x8, _VPIF_CAPTURE_CH_NIP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _VPIF_CAPTURE_CH_NIP@GOTPAGEOFF]
Lloh13:
	adrp	x9, _VPIF_DISPLAY_CH_NIP@GOTPAGE
Lloh14:
	ldr	x9, [x9, _VPIF_DISPLAY_CH_NIP@GOTPAGEOFF]
	csel	x8, x8, x9, lt
	ldr	w1, [x8]
	ldr	x2, [x20, #64]
	mov	x0, x21
	bl	_vpif_wr_bit
Lloh15:
	adrp	x8, _VPIF_CH_YC_MUX_BIT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _VPIF_CH_YC_MUX_BIT@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	ldr	x2, [x20, #56]
	mov	x0, x21
	bl	_vpif_wr_bit
	ldr	w1, [x28]
	ldr	x2, [x20, #8]
	mov	x0, x21
	bl	_vpif_wr_bit
	ldr	w1, [x23]
	mov	x0, x21
	bl	_vpif_clr_bit
	ldr	w1, [x26]
	ldr	x2, [x20, #48]
	mov	x0, x21
	bl	_vpif_wr_bit
	cmp	w19, #2
	b.ge	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20, #48]
	cbz	x8, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh18:
	adrp	x8, _VPIF_CH_FID_POLARITY_BIT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _VPIF_CH_FID_POLARITY_BIT@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	ldr	x2, [x20, #40]
	mov	x0, x21
	bl	_vpif_wr_bit
Lloh21:
	adrp	x8, _VPIF_CH_V_VALID_POLARITY_BIT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _VPIF_CH_V_VALID_POLARITY_BIT@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	ldr	x2, [x20, #32]
	mov	x0, x21
	bl	_vpif_wr_bit
Lloh24:
	adrp	x8, _VPIF_CH_H_VALID_POLARITY_BIT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _VPIF_CH_H_VALID_POLARITY_BIT@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	ldr	x2, [x20, #24]
	mov	x0, x21
	bl	_vpif_wr_bit
	mov	x0, x21
	bl	_regr
Lloh27:
	adrp	x8, _VPIF_CH_DATA_WIDTH_BIT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _VPIF_CH_DATA_WIDTH_BIT@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	mov	w9, #3
	lsl	w9, w9, w8
	bic	w9, w0, w9
	ldr	w10, [x20, #16]
	lsl	w8, w10, w8
	orr	w0, w9, w8
	mov	x1, x21
	bl	_regw
	b	LBB0_3
LBB0_7:
	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
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_vpifregs,8,3                   ; @vpifregs
	.comm	_VPIF_CAPTURE_CH_NIP,4,2        ; @VPIF_CAPTURE_CH_NIP
	.comm	_VPIF_DISPLAY_CH_NIP,4,2        ; @VPIF_DISPLAY_CH_NIP
	.comm	_VPIF_CH_YC_MUX_BIT,4,2         ; @VPIF_CH_YC_MUX_BIT
	.comm	_VPIF_CH_INPUT_FIELD_FRAME_BIT,4,2 ; @VPIF_CH_INPUT_FIELD_FRAME_BIT
	.comm	_VPIF_CH_SDR_FMT_BIT,4,2        ; @VPIF_CH_SDR_FMT_BIT
	.comm	_VPIF_CH_DATA_MODE_BIT,4,2      ; @VPIF_CH_DATA_MODE_BIT
	.comm	_VPIF_DISPLAY_PIX_EN_BIT,4,2    ; @VPIF_DISPLAY_PIX_EN_BIT
	.comm	_VPIF_CH_FID_POLARITY_BIT,4,2   ; @VPIF_CH_FID_POLARITY_BIT
	.comm	_VPIF_CH_V_VALID_POLARITY_BIT,4,2 ; @VPIF_CH_V_VALID_POLARITY_BIT
	.comm	_VPIF_CH_H_VALID_POLARITY_BIT,4,2 ; @VPIF_CH_H_VALID_POLARITY_BIT
	.comm	_VPIF_CH_DATA_WIDTH_BIT,4,2     ; @VPIF_CH_DATA_WIDTH_BIT
	.no_dead_strip	_config_vpif_params
.subsections_via_symbols
