	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sti_plane_update_fps           ## -- Begin function sti_plane_update_fps
	.p2align	4, 0x90
_sti_plane_update_fps:                  ## @sti_plane_update_fps
	.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
	movl	%edx, %ebx
	movl	%esi, %r14d
	movq	%rdi, %r12
	movq	56(%rdi), %r13
	xorl	%eax, %eax
	callq	_ktime_get
	movl	%eax, %r15d
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.1:
	incl	(%r12)
LBB0_2:
	testl	%r14d, %r14d
	je	LBB0_11
## %bb.3:
	incl	4(%r12)
	movl	40(%r12), %esi
	movl	%r15d, %edi
	callq	_ktime_sub
	movl	%eax, %edi
	callq	_ktime_to_ms
	movl	%eax, %r14d
	movl	4(%r12), %ecx
	movl	%ecx, %eax
	subl	8(%r12), %eax
	jle	LBB0_11
## %bb.4:
	movq	_STI_FPS_INTERVAL_MS@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %r14d
	jl	LBB0_11
## %bb.5:
	movl	%r15d, 40(%r12)
	movl	%ecx, 8(%r12)
	movq	(%r13), %rcx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.6:
	imull	$1000000, %eax, %eax            ## imm = 0xF4240
	cltd
	idivl	%r14d
	movslq	24(%r12), %rdx
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	_FPS_LENGTH@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	48(%r12), %rdx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	(%rcx), %edx
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movl	4(%rcx), %edx
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movq	8(%rcx), %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movslq	%eax, %r15
	imulq	$274877907, %r15, %r13          ## imm = 0x10624DD3
	movq	%r13, %rax
	shrq	$63, %rax
	sarq	$38, %r13
	addl	%eax, %r13d
	imull	$1000, %r13d, %eax              ## imm = 0x3E8
	subl	%eax, %r15d
	movq	%r12, %rdi
	callq	_sti_plane_to_str
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rdx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	-52(%rbp), %r8d                 ## 4-byte Reload
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	xorl	%eax, %eax
	pushq	%rbx
	pushq	%r15
	pushq	%r13
	pushq	-80(%rbp)                       ## 8-byte Folded Reload
	callq	_snprintf
	addq	$32, %rsp
LBB0_7:
	movl	(%r12), %eax
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %ecx
	subl	12(%r12), %ecx
	movl	%eax, 12(%r12)
	imull	$1000000, %ecx, %eax            ## imm = 0xF4240
	cltd
	idivl	%r14d
	movq	16(%r12), %rdi
	movq	_FPS_LENGTH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movslq	%eax, %r8
	imulq	$274877907, %r8, %rcx           ## imm = 0x10624DD3
	movq	%rcx, %rax
	shrq	$63, %rax
	sarq	$38, %rcx
	addl	%eax, %ecx
	imull	$1000, %ecx, %eax               ## imm = 0x3E8
	subl	%eax, %r8d
	leaq	L_.str.1(%rip), %rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
                                        ## kill: def $r8d killed $r8d killed $r8
	xorl	%eax, %eax
	callq	_snprintf
	cmpq	$0, 32(%r12)
	je	LBB0_11
LBB0_12:
	movl	24(%r12), %esi
	movq	16(%r12), %rdx
	leaq	L_.str.2(%rip), %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DRM_INFO                       ## TAILCALL
LBB0_9:
	movq	16(%r12), %rax
	movb	$0, (%rax)
	cmpq	$0, 32(%r12)
	jne	LBB0_12
LBB0_11:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STI_FPS_INTERVAL_MS,4,2        ## @STI_FPS_INTERVAL_MS
	.comm	_FPS_LENGTH,4,2                 ## @FPS_LENGTH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%-8s %4dx%-4d %.4s @ %3d.%-3.3d fps (%s)"

L_.str.1:                               ## @.str.1
	.asciz	" - %3d.%-3.3d field/sec"

L_.str.2:                               ## @.str.2
	.asciz	"%s%s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sti_plane_update_fps           ; -- Begin function sti_plane_update_fps
	.p2align	2
_sti_plane_update_fps:                  ; @sti_plane_update_fps
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x22, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x24, [x0, #56]
	bl	_ktime_get
	mov	x21, x0
	cbz	w22, LBB0_2
; %bb.1:
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
LBB0_2:
	cbz	w20, LBB0_10
; %bb.3:
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #4]
	ldr	w1, [x19, #40]
	mov	x0, x21
	bl	_ktime_sub
	bl	_ktime_to_ms
	ldp	w8, w9, [x19, #4]
	sub	w9, w8, w9
Lloh0:
	adrp	x10, _STI_FPS_INTERVAL_MS@GOTPAGE
Lloh1:
	ldr	x10, [x10, _STI_FPS_INTERVAL_MS@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	cmp	w9, #1
	ccmp	w0, w10, #8, ge
	b.lt	LBB0_10
; %bb.4:
	mov	x20, x0
	mov	w10, #16960
	movk	w10, #15, lsl #16
	str	w21, [x19, #40]
	str	w8, [x19, #8]
	ldr	x8, [x24]
Lloh3:
	adrp	x11, _FPS_LENGTH@GOTPAGE
Lloh4:
	ldr	x11, [x11, _FPS_LENGTH@GOTPAGEOFF]
	cbz	x8, LBB0_6
; %bb.5:
	mul	w9, w9, w10
	sdiv	w9, w9, w20
	ldrsw	x21, [x19, #24]
	ldr	w22, [x11]
	ldr	x25, [x19, #48]
	ldr	x26, [x8, #8]
	mov	w10, #19923
	movk	w10, #4194, lsl #16
	smull	x10, w9, w10
	lsr	x11, x10, #32
	lsr	x10, x10, #63
	add	w27, w10, w11, asr #6
	mov	w10, #1000
	msub	w28, w27, w10, w9
	ldp	w23, w24, [x8]
	mov	x0, x19
	bl	_sti_plane_to_str
	stp	x28, x0, [sp, #40]
	stp	x24, x26, [sp, #16]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	stp	x25, x23, [sp]
	str	x27, [sp, #32]
	mov	x0, x21
	mov	x1, x22
	bl	_snprintf
Lloh7:
	adrp	x11, _FPS_LENGTH@GOTPAGE
Lloh8:
	ldr	x11, [x11, _FPS_LENGTH@GOTPAGEOFF]
	mov	w10, #16960
	movk	w10, #15, lsl #16
LBB0_6:
	ldr	w8, [x19]
	cbz	w8, LBB0_9
; %bb.7:
	ldr	w9, [x19, #12]
	sub	w9, w8, w9
	str	w8, [x19, #12]
	mul	w8, w9, w10
	sdiv	w8, w8, w20
	ldr	x0, [x19, #16]
	ldr	w1, [x11]
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	smull	x9, w8, w9
	lsr	x10, x9, #63
	asr	x9, x9, #38
	add	w9, w9, w10
	mov	w10, #1000
	msub	w8, w9, w10, w8
	stp	x9, x8, [sp]
Lloh9:
	adrp	x2, l_.str.1@PAGE
Lloh10:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_snprintf
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_10
LBB0_8:
	ldr	w1, [x19, #24]
	ldr	x2, [x19, #16]
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	b	_DRM_INFO
LBB0_9:
	ldr	x8, [x19, #16]
	strb	wzr, [x8]
	ldr	x8, [x19, #32]
	cbnz	x8, LBB0_8
LBB0_10:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_STI_FPS_INTERVAL_MS,4,2        ; @STI_FPS_INTERVAL_MS
	.comm	_FPS_LENGTH,4,2                 ; @FPS_LENGTH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%-8s %4dx%-4d %.4s @ %3d.%-3.3d fps (%s)"

l_.str.1:                               ; @.str.1
	.asciz	" - %3d.%-3.3d field/sec"

l_.str.2:                               ; @.str.2
	.asciz	"%s%s\n"

.subsections_via_symbols
