	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _dpu_vbif_apply_dynamic_ot_limit
__dpu_vbif_apply_dynamic_ot_limit:      ## @_dpu_vbif_apply_dynamic_ot_limit
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.1:
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	8(%rdi), %rax
	movl	(%rax), %ebx
	movq	_DPU_VBIF_QOS_OTLIM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	testl	%ebx, %eax
	je	LBB0_9
## %bb.2:
	cmpl	$0, 24(%r15)
	je	LBB0_9
## %bb.3:
	movl	(%r15), %r9d
	movl	4(%r15), %r8d
	movl	8(%r15), %ecx
	movl	%ecx, %eax
	imull	%r9d, %eax
	imull	%r8d, %eax
	xorl	%esi, %esi
	cmpq	$0, 16(%r15)
	setne	%sil
	movq	8(%r12), %rdi
	shlq	$4, %rsi
	movq	8(%rsi,%rdi), %rdx
	testq	%rdx, %rdx
	je	LBB0_8
## %bb.4:
	addq	%rdi, %rsi
	addq	$8, %rsi
	movq	8(%rsi), %rsi
	addq	$8, %rsi
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	(%rsi), %eax
	jle	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	addq	$16, %rsi
	decq	%rdx
	jne	LBB0_5
	jmp	LBB0_8
LBB0_6:
	movq	-8(%rsi), %rdx
	movq	%rdx, (%r14)
LBB0_8:
	movq	(%r12), %rsi
	movq	_VBIF_0@GOTPCREL(%rip), %rdx
	subq	(%rdx), %rsi
	movl	12(%r15), %edx
	leaq	L_.str(%rip), %rdi
	pushq	(%r14)
	pushq	%rax
	callq	_DPU_DEBUG
	addq	$16, %rsp
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DPU_VBIF_QOS_OTLIM,4,2         ## @DPU_VBIF_QOS_OTLIM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vbif:%d xin:%d w:%d h:%d fps:%d pps:%llu ot:%u\n"

	.comm	_VBIF_0,8,3                     ## @VBIF_0
	.no_dead_strip	__dpu_vbif_apply_dynamic_ot_limit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _dpu_vbif_apply_dynamic_ot_limit
__dpu_vbif_apply_dynamic_ot_limit:      ; @_dpu_vbif_apply_dynamic_ot_limit
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cbz	x0, LBB0_7
; %bb.1:
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	ldr	x8, [x0, #8]
	ldr	w22, [x8]
Lloh0:
	adrp	x8, _DPU_VBIF_QOS_OTLIM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DPU_VBIF_QOS_OTLIM@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_BIT
	tst	w0, w22
	b.eq	LBB0_7
; %bb.2:
	ldr	w8, [x20, #24]
	cbz	w8, LBB0_7
; %bb.3:
	ldp	w4, w3, [x20, #4]
	ldr	w5, [x20]
	mul	w8, w3, w5
	mul	w6, w8, w4
	ldr	x8, [x20, #16]
	ldr	x9, [x21, #8]
	add	x10, x9, #24
	add	x9, x9, #8
	cmp	x8, #0
	csel	x9, x9, x10, eq
	ldr	x8, [x9]
	cbz	x8, LBB0_9
; %bb.4:
	ldr	x9, [x9, #8]
	add	x9, x9, #8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9]
	cmp	w6, w10
	b.le	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x9, x9, #16
	subs	x8, x8, #1
	b.ne	LBB0_5
	b	LBB0_9
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_8:
	ldur	x8, [x9, #-8]
	str	x8, [x19]
LBB0_9:
	ldr	x8, [x21]
Lloh3:
	adrp	x9, _VBIF_0@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VBIF_0@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	sub	x1, x8, x9
	ldr	w2, [x20, #12]
	ldr	x7, [x19]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_DPU_DEBUG
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DPU_VBIF_QOS_OTLIM,4,2         ; @DPU_VBIF_QOS_OTLIM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vbif:%d xin:%d w:%d h:%d fps:%d pps:%llu ot:%u\n"

	.comm	_VBIF_0,8,3                     ; @VBIF_0
	.no_dead_strip	__dpu_vbif_apply_dynamic_ot_limit
.subsections_via_symbols
