	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sti_vid_commit                 ## -- Begin function sti_vid_commit
	.p2align	4, 0x90
_sti_vid_commit:                        ## @sti_vid_commit
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	24(%rsi), %r15
	movslq	(%rsi), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movslq	4(%rsi), %r14
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	16(%rsi), %edi
	movq	8(%r15), %rdx
	subq	%rax, %rdx
	xorl	%esi, %esi
	callq	_clamp_val
	movl	%eax, %r12d
	movl	12(%rbx), %edi
	movq	(%r15), %rdx
	subq	%r14, %rdx
	xorl	%esi, %esi
	callq	_clamp_val
	movl	%eax, %r14d
	movswl	10(%rbx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%r12d, %edi
	movl	$2, %esi
	callq	_ALIGN
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	%r14d, %edi
	movl	$2, %esi
	callq	_ALIGN
	movl	%eax, %r14d
	movq	_VID_CTL@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	addq	(%r13), %rdi
	callq	_readl
	movq	_VID_CTL_IGNORE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	notl	%edi
	andl	%eax, %edi
	movq	(%rbx), %rsi
	addq	(%r13), %rsi
	callq	_writel
	movq	(%r15), %rdi
	movq	8(%r15), %rsi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_sti_vtg_get_line_number
	movl	%eax, %r12d
	leal	(%rbx,%r14), %edx
	decl	%edx
	movq	(%r15), %rdi
	movq	8(%r15), %rsi
	callq	_sti_vtg_get_line_number
	movl	%eax, %r14d
	movq	(%r15), %rdi
	movq	8(%r15), %rsi
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movl	%r13d, %edx
	callq	_sti_vtg_get_pixel_number
	movl	%eax, %ebx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leal	(%rax,%r13), %edx
	decl	%edx
	movq	(%r15), %rdi
	movq	8(%r15), %rsi
	callq	_sti_vtg_get_pixel_number
	movl	%eax, %r15d
	shll	$16, %r12d
	orl	%ebx, %r12d
	movq	_VID_VPO@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	addq	(%rbx), %rsi
	movl	%r12d, %edi
	callq	_writel
	shll	$16, %r14d
	orl	%r15d, %r14d
	movq	_VID_VPS@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	movl	%r14d, %edi
	callq	_writel
	movq	_VID_MPR0@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	movq	%rbx, %r12
	movq	_VID_MIN_HD_HEIGHT@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	(%rax), %ecx
	movq	_VID_MPR0_BT709@GOTPCREL(%rip), %rax
	cmovlq	_VID_MPR0_BT601@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_VID_MPR1_BT709@GOTPCREL(%rip), %rbx
	cmovlq	_VID_MPR1_BT601@GOTPCREL(%rip), %rbx
	movq	_VID_MPR2_BT709@GOTPCREL(%rip), %r14
	cmovlq	_VID_MPR2_BT601@GOTPCREL(%rip), %r14
	movq	_VID_MPR3_BT709@GOTPCREL(%rip), %r15
	cmovlq	_VID_MPR3_BT601@GOTPCREL(%rip), %r15
	callq	_writel
	movl	(%rbx), %edi
	movq	_VID_MPR1@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r12), %rsi
	callq	_writel
	movl	(%r14), %edi
	movq	_VID_MPR2@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r12), %rsi
	callq	_writel
	movl	(%r15), %edi
	movq	_VID_MPR3@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r12), %rsi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VID_CTL,8,3                    ## @VID_CTL
	.comm	_VID_CTL_IGNORE,4,2             ## @VID_CTL_IGNORE
	.comm	_VID_VPO,8,3                    ## @VID_VPO
	.comm	_VID_VPS,8,3                    ## @VID_VPS
	.comm	_VID_MIN_HD_HEIGHT,4,2          ## @VID_MIN_HD_HEIGHT
	.comm	_VID_MPR0_BT709,4,2             ## @VID_MPR0_BT709
	.comm	_VID_MPR0,8,3                   ## @VID_MPR0
	.comm	_VID_MPR1_BT709,4,2             ## @VID_MPR1_BT709
	.comm	_VID_MPR1,8,3                   ## @VID_MPR1
	.comm	_VID_MPR2_BT709,4,2             ## @VID_MPR2_BT709
	.comm	_VID_MPR2,8,3                   ## @VID_MPR2
	.comm	_VID_MPR3_BT709,4,2             ## @VID_MPR3_BT709
	.comm	_VID_MPR3,8,3                   ## @VID_MPR3
	.comm	_VID_MPR0_BT601,4,2             ## @VID_MPR0_BT601
	.comm	_VID_MPR1_BT601,4,2             ## @VID_MPR1_BT601
	.comm	_VID_MPR2_BT601,4,2             ## @VID_MPR2_BT601
	.comm	_VID_MPR3_BT601,4,2             ## @VID_MPR3_BT601
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sti_vid_commit                 ; -- Begin function sti_vid_commit
	.p2align	2
_sti_vid_commit:                        ; @sti_vid_commit
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x22, x1
	mov	x19, x0
	ldr	x26, [x1, #24]
	ldpsw	x20, x21, [x1]
	ldr	w0, [x1, #16]
	ldr	x8, [x26, #8]
	sub	x2, x8, x20
	mov	w1, #0
	bl	_clamp_val
	mov	x23, x0
	ldr	w0, [x22, #12]
	ldr	x8, [x26]
	sub	x2, x8, x21
	mov	w1, #0
	bl	_clamp_val
	mov	x24, x0
	ldrsh	w25, [x22, #10]
	mov	x0, x23
	mov	w1, #2
	bl	_ALIGN
	mov	x22, x0
	mov	x0, x24
	mov	w1, #2
	bl	_ALIGN
	mov	x23, x0
	ldr	x8, [x19]
Lloh0:
	adrp	x24, _VID_CTL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _VID_CTL@GOTPAGEOFF]
	ldr	x9, [x24]
	add	x0, x9, x8
	bl	_readl
Lloh2:
	adrp	x8, _VID_CTL_IGNORE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VID_CTL_IGNORE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	bic	w0, w0, w8
	ldr	x8, [x19]
	ldr	x9, [x24]
	add	x1, x9, x8
	bl	_writel
	ldp	x0, x1, [x26]
	mov	x2, x21
	bl	_sti_vtg_get_line_number
	mov	x24, x0
	add	w8, w21, w23
	sub	w2, w8, #1
	ldp	x0, x1, [x26]
	bl	_sti_vtg_get_line_number
	mov	x21, x0
	ldp	x0, x1, [x26]
	mov	x2, x20
	bl	_sti_vtg_get_pixel_number
	mov	x23, x0
	add	w8, w20, w22
	sub	w2, w8, #1
	ldp	x0, x1, [x26]
	bl	_sti_vtg_get_pixel_number
	mov	x20, x0
	orr	w0, w23, w24, lsl #16
	ldr	x8, [x19]
Lloh5:
	adrp	x9, _VID_VPO@GOTPAGE
Lloh6:
	ldr	x9, [x9, _VID_VPO@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	orr	w0, w20, w21, lsl #16
	ldr	x8, [x19]
Lloh8:
	adrp	x9, _VID_VPS@GOTPAGE
Lloh9:
	ldr	x9, [x9, _VID_VPS@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
Lloh11:
	adrp	x8, _VID_MIN_HD_HEIGHT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _VID_MIN_HD_HEIGHT@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _VID_MPR0_BT601@GOTPAGE
Lloh15:
	ldr	x9, [x9, _VID_MPR0_BT601@GOTPAGEOFF]
Lloh16:
	adrp	x10, _VID_MPR0_BT709@GOTPAGE
Lloh17:
	ldr	x10, [x10, _VID_MPR0_BT709@GOTPAGEOFF]
	cmp	w25, w8
	csel	x8, x9, x10, lt
	ldr	w0, [x8]
	ldr	x8, [x19]
Lloh18:
	adrp	x9, _VID_MPR0@GOTPAGE
Lloh19:
	ldr	x9, [x9, _VID_MPR0@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	add	x1, x9, x8
Lloh21:
	adrp	x8, _VID_MPR1_BT601@GOTPAGE
Lloh22:
	ldr	x8, [x8, _VID_MPR1_BT601@GOTPAGEOFF]
Lloh23:
	adrp	x9, _VID_MPR1_BT709@GOTPAGE
Lloh24:
	ldr	x9, [x9, _VID_MPR1_BT709@GOTPAGEOFF]
	csel	x20, x8, x9, lt
Lloh25:
	adrp	x8, _VID_MPR2_BT601@GOTPAGE
Lloh26:
	ldr	x8, [x8, _VID_MPR2_BT601@GOTPAGEOFF]
Lloh27:
	adrp	x9, _VID_MPR2_BT709@GOTPAGE
Lloh28:
	ldr	x9, [x9, _VID_MPR2_BT709@GOTPAGEOFF]
Lloh29:
	adrp	x10, _VID_MPR3_BT601@GOTPAGE
Lloh30:
	ldr	x10, [x10, _VID_MPR3_BT601@GOTPAGEOFF]
	csel	x21, x8, x9, lt
Lloh31:
	adrp	x8, _VID_MPR3_BT709@GOTPAGE
Lloh32:
	ldr	x8, [x8, _VID_MPR3_BT709@GOTPAGEOFF]
	csel	x22, x10, x8, lt
	bl	_writel
	ldr	w0, [x20]
	ldr	x8, [x19]
Lloh33:
	adrp	x9, _VID_MPR1@GOTPAGE
Lloh34:
	ldr	x9, [x9, _VID_MPR1@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	w0, [x21]
	ldr	x8, [x19]
Lloh36:
	adrp	x9, _VID_MPR2@GOTPAGE
Lloh37:
	ldr	x9, [x9, _VID_MPR2@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	w0, [x22]
	ldr	x8, [x19]
Lloh39:
	adrp	x9, _VID_MPR3@GOTPAGE
Lloh40:
	ldr	x9, [x9, _VID_MPR3@GOTPAGEOFF]
Lloh41:
	ldr	x9, [x9]
	add	x1, x9, x8
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_writel
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_VID_CTL,8,3                    ; @VID_CTL
	.comm	_VID_CTL_IGNORE,4,2             ; @VID_CTL_IGNORE
	.comm	_VID_VPO,8,3                    ; @VID_VPO
	.comm	_VID_VPS,8,3                    ; @VID_VPS
	.comm	_VID_MIN_HD_HEIGHT,4,2          ; @VID_MIN_HD_HEIGHT
	.comm	_VID_MPR0_BT709,4,2             ; @VID_MPR0_BT709
	.comm	_VID_MPR0,8,3                   ; @VID_MPR0
	.comm	_VID_MPR1_BT709,4,2             ; @VID_MPR1_BT709
	.comm	_VID_MPR1,8,3                   ; @VID_MPR1
	.comm	_VID_MPR2_BT709,4,2             ; @VID_MPR2_BT709
	.comm	_VID_MPR2,8,3                   ; @VID_MPR2
	.comm	_VID_MPR3_BT709,4,2             ; @VID_MPR3_BT709
	.comm	_VID_MPR3,8,3                   ; @VID_MPR3
	.comm	_VID_MPR0_BT601,4,2             ; @VID_MPR0_BT601
	.comm	_VID_MPR1_BT601,4,2             ; @VID_MPR1_BT601
	.comm	_VID_MPR2_BT601,4,2             ; @VID_MPR2_BT601
	.comm	_VID_MPR3_BT601,4,2             ; @VID_MPR3_BT601
.subsections_via_symbols
