	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _dpu_vbif_get_ot_limit
__dpu_vbif_get_ot_limit:                ## @_dpu_vbif_get_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	$0, -24(%rbp)
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	16(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.3:
	movq	%rsi, %r14
	movq	(%rcx), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	cmpq	$0, 8(%r14)
	je	LBB0_7
LBB0_5:
	movq	8(%rcx), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.6:
	cmpq	$0, 8(%r14)
	je	LBB0_11
LBB0_7:
	movq	%rax, -24(%rbp)
	leaq	-24(%rbp), %rsi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	__dpu_vbif_apply_dynamic_ot_limit
	movq	8(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.9:
	movl	(%r14), %esi
	movq	8(%r14), %rdx
	movq	%rbx, %rdi
	callq	*%rcx
	movq	-24(%rbp), %rcx
	cmpq	%rcx, %rax
	jne	LBB0_12
## %bb.10:
	movq	$0, -24(%rbp)
LBB0_11:
	xorl	%ecx, %ecx
	jmp	LBB0_12
LBB0_2:
	xorl	%esi, %esi
	testq	%rbx, %rbx
	setne	%sil
	leaq	L_.str(%rip), %rdi
	callq	_DPU_ERROR
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subq	(%rcx), %rax
	jmp	LBB0_13
LBB0_8:
	movq	-24(%rbp), %rcx
LBB0_12:
	movq	(%rbx), %rsi
	movq	_VBIF_0@GOTPCREL(%rip), %rax
	subq	(%rax), %rsi
	movl	(%r14), %edx
	leaq	L_.str.1(%rip), %rdi
	callq	_DPU_DEBUG
	movq	-24(%rbp), %rax
LBB0_13:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid arguments vbif %d\n"

	.comm	_EINVAL,8,3                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"vbif:%d xin:%d ot_lim:%d\n"

	.comm	_VBIF_0,8,3                     ## @VBIF_0
	.no_dead_strip	__dpu_vbif_get_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_get_ot_limit
__dpu_vbif_get_ot_limit:                ; @_dpu_vbif_get_ot_limit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x0
	str	xzr, [sp, #8]
	cbz	x0, LBB0_9
; %bb.1:
	ldr	x9, [x20, #16]
	cbz	x9, LBB0_9
; %bb.2:
	mov	x19, x1
	ldr	x8, [x9]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	x10, [x19, #8]
	cbz	x10, LBB0_6
LBB0_4:
	ldr	x8, [x9, #8]
	cbz	x8, LBB0_10
; %bb.5:
	ldr	x9, [x19, #8]
	cbz	x9, LBB0_10
LBB0_6:
	str	x8, [sp, #8]
	add	x1, sp, #8
	mov	x0, x20
	mov	x2, x19
	bl	__dpu_vbif_apply_dynamic_ot_limit
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_11
; %bb.7:
	ldr	w1, [x19]
	ldr	x2, [x19, #8]
	mov	x0, x20
	blr	x8
	ldr	x3, [sp, #8]
	cmp	x0, x3
	b.ne	LBB0_12
; %bb.8:
	mov	x3, #0
	str	xzr, [sp, #8]
	b	LBB0_12
LBB0_9:
	cmp	x20, #0
	cset	w1, ne
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DPU_ERROR
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	neg	x0, x8
	b	LBB0_13
LBB0_10:
	mov	x3, #0
	b	LBB0_12
LBB0_11:
	ldr	x3, [sp, #8]
LBB0_12:
	ldr	x8, [x20]
Lloh5:
	adrp	x9, _VBIF_0@GOTPAGE
Lloh6:
	ldr	x9, [x9, _VBIF_0@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	sub	x1, x8, x9
	ldr	w2, [x19]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DPU_DEBUG
	ldr	x0, [sp, #8]
LBB0_13:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid arguments vbif %d\n"

	.comm	_EINVAL,8,3                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"vbif:%d xin:%d ot_lim:%d\n"

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