	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpu_hw_set_qos_remap
_dpu_hw_set_qos_remap:                  ## @dpu_hw_set_qos_remap
	.cfi_startproc
## %bb.0:
                                        ## kill: def $edx killed $edx def $rdx
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	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
	movl	%ecx, %r12d
	movl	%esi, %r13d
	movl	%esi, %eax
	shrl	%eax
	andl	$4, %eax
	leal	(%rax,%rdx,8), %eax
	shll	$2, %r13d
	movq	_VBIF_XINL_QOS_RP_REMAP_000@GOTPCREL(%rip), %rcx
	movslq	%eax, %r15
	movq	(%rcx), %rsi
	addq	%r15, %rsi
	movq	%rdi, %rbx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_DPU_REG_READ
	movl	%eax, %r14d
	movq	_VBIF_XINL_QOS_LVL_REMAP_000@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r15, %rsi
	movq	%rbx, %rdi
	callq	_DPU_REG_READ
	movl	$7, %ebx
	movl	%r13d, %ecx
	shll	%cl, %ebx
	shll	%cl, %r12d
	andl	%ebx, %r12d
	notl	%ebx
	andl	%ebx, %r14d
	orl	%r12d, %r14d
	andl	%eax, %ebx
	orl	%r12d, %ebx
	movq	_VBIF_XINL_QOS_RP_REMAP_000@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r15, %rsi
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movl	%r14d, %edx
	callq	_DPU_REG_WRITE
	movq	_VBIF_XINL_QOS_LVL_REMAP_000@GOTPCREL(%rip), %rax
	addq	(%rax), %r15
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DPU_REG_WRITE                  ## TAILCALL
LBB0_1:
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VBIF_XINL_QOS_RP_REMAP_000,8,3 ## @VBIF_XINL_QOS_RP_REMAP_000
	.comm	_VBIF_XINL_QOS_LVL_REMAP_000,8,3 ## @VBIF_XINL_QOS_LVL_REMAP_000
	.no_dead_strip	_dpu_hw_set_qos_remap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dpu_hw_set_qos_remap
_dpu_hw_set_qos_remap:                  ; @dpu_hw_set_qos_remap
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_2
; %bb.1:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x3
	mov	x19, x0
	lsr	w8, w1, #1
	and	w8, w8, #0x4
	bfi	w8, w2, #3, #29
	ubfiz	w22, w1, #2, #3
Lloh0:
	adrp	x23, _VBIF_XINL_QOS_RP_REMAP_000@GOTPAGE
Lloh1:
	ldr	x23, [x23, _VBIF_XINL_QOS_RP_REMAP_000@GOTPAGEOFF]
	ldr	x9, [x23]
	sxtw	x24, w8
	add	x1, x9, x24
	bl	_DPU_REG_READ
	mov	x21, x0
Lloh2:
	adrp	x25, _VBIF_XINL_QOS_LVL_REMAP_000@GOTPAGE
Lloh3:
	ldr	x25, [x25, _VBIF_XINL_QOS_LVL_REMAP_000@GOTPAGEOFF]
	ldr	x8, [x25]
	add	x1, x8, x24
	mov	x0, x19
	bl	_DPU_REG_READ
	mov	w8, #7
	lsl	w8, w8, w22
	bic	w9, w21, w8
	lsl	w10, w20, w22
	and	w10, w10, w8
	orr	w2, w9, w10
	bic	w8, w0, w8
	orr	w20, w8, w10
	ldr	x8, [x23]
	add	x1, x8, x24
	mov	x0, x19
	bl	_DPU_REG_WRITE
	ldr	x8, [x25]
	add	x1, x8, x24
	mov	x0, x19
	mov	x2, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_DPU_REG_WRITE
LBB0_2:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	.cfi_same_value w23
	.cfi_same_value w24
	.cfi_same_value w25
	.cfi_same_value w26
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_VBIF_XINL_QOS_RP_REMAP_000,8,3 ; @VBIF_XINL_QOS_RP_REMAP_000
	.comm	_VBIF_XINL_QOS_LVL_REMAP_000,8,3 ; @VBIF_XINL_QOS_LVL_REMAP_000
	.no_dead_strip	_dpu_hw_set_qos_remap
.subsections_via_symbols
