	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dpu_vbif_set_ot_limit          ## -- Begin function dpu_vbif_set_ot_limit
	.p2align	4, 0x90
_dpu_vbif_set_ot_limit:                 ## @dpu_vbif_set_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	%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
	testq	%rdi, %rdi
	je	LBB0_21
## %bb.1:
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	(%rdi), %rdi
	movq	8(%r13), %r14
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_2
## %bb.4:
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jge	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rdi
	movq	(%rdi,%rbx,8), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%rax), %rcx
	cmpq	(%r15), %rcx
	cmoveq	%rax, %r12
	jmp	LBB0_7
LBB0_8:
	testq	%r14, %r14
	setne	%al
	testq	%r12, %r12
	setne	%cl
	je	LBB0_3
## %bb.9:
	testq	%r14, %r14
	je	LBB0_3
## %bb.10:
	cmpq	$0, (%r14)
	je	LBB0_20
## %bb.11:
	cmpq	$0, 16(%r12)
	je	LBB0_20
## %bb.12:
	cmpq	$0, 8(%r12)
	je	LBB0_20
## %bb.13:
	movq	24(%r12), %rax
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:
	cmpl	$0, 16(%r15)
	jne	LBB0_16
## %bb.15:
	movl	12(%r15), %esi
	movq	%r12, %rdi
	callq	*%rax
LBB0_16:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	__dpu_vbif_get_ot_limit
	movl	%eax, %ebx
	andl	$255, %ebx
	je	LBB0_20
## %bb.17:
	movl	20(%r15), %edi
	movl	12(%r15), %esi
	movq	(%r15), %rcx
	movl	%ebx, %edx
	callq	_trace_dpu_perf_set_ot
	movl	8(%r15), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	*(%r14)
	movl	%eax, %r13d
	movl	12(%r15), %esi
	movl	16(%r15), %edx
	movq	%r12, %rdi
	movl	%ebx, %ecx
	callq	*16(%r12)
	movl	12(%r15), %esi
	movq	%r12, %rdi
	movl	$1, %edx
	callq	*8(%r12)
	movl	12(%r15), %esi
	movq	%r12, %rdi
	callq	__dpu_vbif_wait_for_xin_halt
	testl	%eax, %eax
	je	LBB0_19
## %bb.18:
	movq	(%r12), %rdi
	movl	12(%r15), %esi
	callq	_trace_dpu_vbif_wait_xin_halt_fail
LBB0_19:
	movl	12(%r15), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	*8(%r12)
	testl	%r13d, %r13d
	je	LBB0_20
## %bb.22:
	movq	(%r14), %rax
	movl	8(%r15), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_21:
	leaq	L_.str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DPU_ERROR                      ## TAILCALL
LBB0_2:
	testq	%r14, %r14
	setne	%al
	xorl	%ecx, %ecx
LBB0_3:
	movzbl	%cl, %esi
	movzbl	%al, %edx
	leaq	L_.str.1(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DPU_DEBUG                      ## TAILCALL
LBB0_20:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid arguments\n"

L_.str.1:                               ## @.str.1
	.asciz	"invalid arguments vbif %d mdp %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dpu_vbif_set_ot_limit          ; -- Begin function dpu_vbif_set_ot_limit
	.p2align	2
_dpu_vbif_set_ot_limit:                 ; @dpu_vbif_set_ot_limit
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	cbz	x0, LBB0_19
; %bb.1:
	mov	x19, x1
	mov	x22, x0
	ldp	x0, x20, [x0]
	bl	_ARRAY_SIZE
	cmp	w0, #0
	b.le	LBB0_20
; %bb.2:
	mov	x23, #0
	mov	x21, #0
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x23, #1
	bl	_ARRAY_SIZE
	cmp	x23, w0, sxtw
	b.ge	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x22]
	ldr	x8, [x0, x23, lsl #3]
	cbz	x8, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x8]
	ldr	x10, [x19]
	cmp	x9, x10
	csel	x21, x8, x21, eq
	b	LBB0_3
LBB0_6:
	cmp	x21, #0
	cset	w1, ne
	cmp	x20, #0
	cset	w2, ne
	cbz	x21, LBB0_21
; %bb.7:
	cbz	x20, LBB0_21
; %bb.8:
	ldr	x8, [x20]
	cbz	x8, LBB0_22
; %bb.9:
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_22
; %bb.10:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_22
; %bb.11:
	ldr	x8, [x21, #24]
	cbz	x8, LBB0_14
; %bb.12:
	ldr	w9, [x19, #16]
	cbnz	w9, LBB0_14
; %bb.13:
	ldr	w1, [x19, #12]
	mov	x0, x21
	blr	x8
LBB0_14:
	mov	x0, x21
	mov	x1, x19
	bl	__dpu_vbif_get_ot_limit
	ands	w23, w0, #0xff
	b.eq	LBB0_22
; %bb.15:
	ldr	w0, [x19, #20]
	ldr	w1, [x19, #12]
	ldr	x3, [x19]
	mov	x2, x23
	bl	_trace_dpu_perf_set_ot
	ldr	x8, [x20]
	ldr	w1, [x19, #8]
	mov	x0, x20
	mov	w2, #1
	blr	x8
	mov	x22, x0
	ldr	x8, [x21, #16]
	ldp	w1, w2, [x19, #12]
	mov	x0, x21
	mov	x3, x23
	blr	x8
	ldr	x8, [x21, #8]
	ldr	w1, [x19, #12]
	mov	x0, x21
	mov	w2, #1
	blr	x8
	ldr	w1, [x19, #12]
	mov	x0, x21
	bl	__dpu_vbif_wait_for_xin_halt
	cbz	w0, LBB0_17
; %bb.16:
	ldr	x0, [x21]
	ldr	w1, [x19, #12]
	bl	_trace_dpu_vbif_wait_xin_halt_fail
LBB0_17:
	ldr	x8, [x21, #8]
	ldr	w1, [x19, #12]
	mov	x0, x21
	mov	w2, #0
	blr	x8
	cbz	w22, LBB0_22
; %bb.18:
	ldr	x3, [x20]
	ldr	w1, [x19, #8]
	mov	x0, x20
	mov	w2, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	br	x3
LBB0_19:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_DPU_ERROR
LBB0_20:
	mov	w1, #0
	cmp	x20, #0
	cset	w2, ne
LBB0_21:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_DPU_DEBUG
LBB0_22:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid arguments\n"

l_.str.1:                               ; @.str.1
	.asciz	"invalid arguments vbif %d mdp %d\n"

.subsections_via_symbols
