	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dpu_vbif_set_qos_remap         ## -- Begin function dpu_vbif_set_qos_remap
	.p2align	4, 0x90
_dpu_vbif_set_qos_remap:                ## @dpu_vbif_set_qos_remap
	.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_22
## %bb.1:
	movq	%rsi, %r15
	testq	%rsi, %rsi
	je	LBB0_22
## %bb.2:
	movq	%rdi, %r12
	movq	8(%rdi), %r14
	testq	%r14, %r14
	je	LBB0_22
## %bb.3:
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_8
## %bb.4:
	xorl	%ebx, %ebx
	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	(%r12), %rdi
	movq	(%rdi,%rbx,8), %r13
	testq	%r13, %r13
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r13), %rax
	cmpq	(%r15), %rax
	jne	LBB0_7
## %bb.9:
	movq	16(%r13), %rcx
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.10:
	cmpq	$0, 8(%r13)
	je	LBB0_12
## %bb.11:
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.14:
	leaq	16(%rcx), %rbx
	cmpq	$0, 16(%r15)
	cmoveq	%rcx, %rbx
	cmpl	$0, (%rbx)
	je	LBB0_16
## %bb.15:
	cmpq	$0, 8(%rbx)
	je	LBB0_16
## %bb.17:
	movl	8(%r15), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	*%rax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cmpl	$0, (%rbx)
	jle	LBB0_20
## %bb.18:
	xorl	%r12d, %r12d
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rsi
	movl	12(%r15), %edx
	movq	8(%rbx), %rax
	movl	(%rax,%r12,4), %r8d
	leaq	L_.str.4(%rip), %rdi
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_DPU_DEBUG
	movl	12(%r15), %esi
	movq	8(%rbx), %rax
	movl	(%rax,%r12,4), %ecx
	movq	%r13, %rdi
	movl	%r12d, %edx
	callq	*8(%r13)
	incq	%r12
	movslq	(%rbx), %rax
	cmpq	%rax, %r12
	jl	LBB0_19
LBB0_20:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_21
## %bb.23:
	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_22:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DPU_ERROR                      ## TAILCALL
LBB0_8:
	movq	(%r15), %rsi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DPU_ERROR                      ## TAILCALL
LBB0_12:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_13
LBB0_16:
	leaq	L_.str.3(%rip), %rdi
LBB0_13:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DPU_DEBUG                      ## TAILCALL
LBB0_21:
	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 vbif %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"qos remap not supported\n"

L_.str.3:                               ## @.str.3
	.asciz	"qos tbl not defined\n"

L_.str.4:                               ## @.str.4
	.asciz	"vbif:%d xin:%d lvl:%d/%d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dpu_vbif_set_qos_remap         ; -- Begin function dpu_vbif_set_qos_remap
	.p2align	2
_dpu_vbif_set_qos_remap:                ; @dpu_vbif_set_qos_remap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	cbz	x0, LBB0_18
; %bb.1:
	mov	x19, x1
	cbz	x1, LBB0_18
; %bb.2:
	mov	x22, x0
	ldr	x20, [x0, #8]
	cbz	x20, LBB0_18
; %bb.3:
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_19
; %bb.4:
	mov	x23, #0
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x23, x23, #1
	bl	_ARRAY_SIZE
	cmp	x23, w0, sxtw
	b.ge	LBB0_19
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x22]
	ldr	x21, [x0, x23, lsl #3]
	cbz	x21, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x21]
	ldr	x9, [x19]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.8:
	ldr	x9, [x21, #16]
	cbz	x9, LBB0_19
; %bb.9:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_21
; %bb.10:
	ldr	x8, [x20]
	cbz	x8, LBB0_21
; %bb.11:
	ldr	x10, [x19, #16]
	add	x11, x9, #16
	cmp	x10, #0
	csel	x25, x9, x11, eq
	ldr	w9, [x25]
	cbz	w9, LBB0_22
; %bb.12:
	ldr	x9, [x25, #8]
	cbz	x9, LBB0_22
; %bb.13:
	ldr	w1, [x19, #8]
	mov	x0, x20
	mov	w2, #1
	blr	x8
	mov	x22, x0
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.14:
	mov	x23, #0
Lloh0:
	adrp	x24, l_.str.4@PAGE
Lloh1:
	add	x24, x24, l_.str.4@PAGEOFF
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	x9, [x25, #8]
	lsl	x26, x23, #2
	ldr	w9, [x9, x26]
	ldr	w10, [x19, #12]
	stp	x23, x9, [sp, #16]
	stp	x8, x10, [sp]
	mov	x0, x24
	bl	_DPU_DEBUG
	ldr	x8, [x21, #8]
	ldr	w1, [x19, #12]
	ldr	x9, [x25, #8]
	ldr	w3, [x9, x26]
	mov	x0, x21
	mov	x2, x23
	blr	x8
	add	x23, x23, #1
	ldrsw	x8, [x25]
	cmp	x23, x8
	b.lt	LBB0_15
LBB0_16:
	cbz	w22, LBB0_20
; %bb.17:
	ldr	x3, [x20]
	ldr	w1, [x19, #8]
	mov	x0, x20
	mov	w2, #0
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	br	x3
LBB0_18:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_DPU_ERROR
LBB0_19:
	ldr	x8, [x19]
	str	x8, [sp]
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DPU_ERROR
LBB0_20:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_21:
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_23
LBB0_22:
Lloh8:
	adrp	x0, l_.str.3@PAGE
Lloh9:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_23:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_DPU_DEBUG
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid arguments\n"

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

l_.str.2:                               ; @.str.2
	.asciz	"qos remap not supported\n"

l_.str.3:                               ; @.str.3
	.asciz	"qos tbl not defined\n"

l_.str.4:                               ; @.str.4
	.asciz	"vbif:%d xin:%d lvl:%d/%d\n"

.subsections_via_symbols
