	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpu_hw_sspp_setup_qos_ctrl
_dpu_hw_sspp_setup_qos_ctrl:            ## @dpu_hw_sspp_setup_qos_ctrl
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movq	_DPU_SSPP_SRC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	callq	__sspp_subblk_offset
	testq	%rax, %rax
	jne	LBB0_6
## %bb.1:
	xorl	%edx, %edx
	cmpq	$0, 16(%rbx)
	movl	$0, %eax
	je	LBB0_3
## %bb.2:
	movq	_SSPP_QOS_CTRL_CREQ_VBLANK_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	(%rbx), %esi
	movq	_SSPP_QOS_CTRL_CREQ_VBLANK_OFF@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %esi
	movq	_SSPP_QOS_CTRL_DANGER_VBLANK_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	4(%rbx), %eax
	movq	_SSPP_QOS_CTRL_DANGER_VBLANK_OFF@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	orl	%esi, %eax
	movq	_SSPP_QOS_CTRL_VBLANK_EN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
LBB0_3:
	cmpq	$0, 8(%rbx)
	je	LBB0_5
## %bb.4:
	movq	_SSPP_QOS_CTRL_DANGER_SAFE_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
LBB0_5:
	orl	%eax, %edx
	movq	_SSPP_QOS_CTRL@GOTPCREL(%rip), %rax
	movl	-20(%rbp), %esi
	addl	(%rax), %esi
	movq	%r14, %rdi
	callq	_DPU_REG_WRITE
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DPU_SSPP_SRC,4,2               ## @DPU_SSPP_SRC
	.comm	_SSPP_QOS_CTRL_CREQ_VBLANK_MASK,4,2 ## @SSPP_QOS_CTRL_CREQ_VBLANK_MASK
	.comm	_SSPP_QOS_CTRL_CREQ_VBLANK_OFF,4,2 ## @SSPP_QOS_CTRL_CREQ_VBLANK_OFF
	.comm	_SSPP_QOS_CTRL_DANGER_VBLANK_MASK,4,2 ## @SSPP_QOS_CTRL_DANGER_VBLANK_MASK
	.comm	_SSPP_QOS_CTRL_DANGER_VBLANK_OFF,4,2 ## @SSPP_QOS_CTRL_DANGER_VBLANK_OFF
	.comm	_SSPP_QOS_CTRL_VBLANK_EN,4,2    ## @SSPP_QOS_CTRL_VBLANK_EN
	.comm	_SSPP_QOS_CTRL_DANGER_SAFE_EN,4,2 ## @SSPP_QOS_CTRL_DANGER_SAFE_EN
	.comm	_SSPP_QOS_CTRL,4,2              ## @SSPP_QOS_CTRL
	.no_dead_strip	_dpu_hw_sspp_setup_qos_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dpu_hw_sspp_setup_qos_ctrl
_dpu_hw_sspp_setup_qos_ctrl:            ; @dpu_hw_sspp_setup_qos_ctrl
	.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, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _DPU_SSPP_SRC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DPU_SSPP_SRC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	__sspp_subblk_offset
	cbnz	x0, LBB0_4
; %bb.1:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _SSPP_QOS_CTRL_CREQ_VBLANK_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SSPP_QOS_CTRL_CREQ_VBLANK_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldp	w9, w10, [x20]
	and	w8, w8, w9
Lloh6:
	adrp	x9, _SSPP_QOS_CTRL_CREQ_VBLANK_OFF@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SSPP_QOS_CTRL_CREQ_VBLANK_OFF@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x11, _SSPP_QOS_CTRL_DANGER_VBLANK_MASK@GOTPAGE
Lloh10:
	ldr	x11, [x11, _SSPP_QOS_CTRL_DANGER_VBLANK_MASK@GOTPAGEOFF]
	lsl	w8, w8, w9
Lloh11:
	ldr	w9, [x11]
	and	w9, w9, w10
Lloh12:
	adrp	x10, _SSPP_QOS_CTRL_DANGER_VBLANK_OFF@GOTPAGE
Lloh13:
	ldr	x10, [x10, _SSPP_QOS_CTRL_DANGER_VBLANK_OFF@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w8, w9, w8
Lloh15:
	adrp	x9, _SSPP_QOS_CTRL_VBLANK_EN@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SSPP_QOS_CTRL_VBLANK_EN@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w8, w9
LBB0_3:
	ldr	x9, [x20, #8]
Lloh18:
	adrp	x10, _SSPP_QOS_CTRL_DANGER_SAFE_EN@GOTPAGE
Lloh19:
	ldr	x10, [x10, _SSPP_QOS_CTRL_DANGER_SAFE_EN@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	cmp	x9, #0
	csel	w9, wzr, w10, eq
	orr	w2, w9, w8
Lloh21:
	adrp	x8, _SSPP_QOS_CTRL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SSPP_QOS_CTRL@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	add	w1, w9, w8
	mov	x0, x19
	bl	_DPU_REG_WRITE
LBB0_4:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_DPU_SSPP_SRC,4,2               ; @DPU_SSPP_SRC
	.comm	_SSPP_QOS_CTRL_CREQ_VBLANK_MASK,4,2 ; @SSPP_QOS_CTRL_CREQ_VBLANK_MASK
	.comm	_SSPP_QOS_CTRL_CREQ_VBLANK_OFF,4,2 ; @SSPP_QOS_CTRL_CREQ_VBLANK_OFF
	.comm	_SSPP_QOS_CTRL_DANGER_VBLANK_MASK,4,2 ; @SSPP_QOS_CTRL_DANGER_VBLANK_MASK
	.comm	_SSPP_QOS_CTRL_DANGER_VBLANK_OFF,4,2 ; @SSPP_QOS_CTRL_DANGER_VBLANK_OFF
	.comm	_SSPP_QOS_CTRL_VBLANK_EN,4,2    ; @SSPP_QOS_CTRL_VBLANK_EN
	.comm	_SSPP_QOS_CTRL_DANGER_SAFE_EN,4,2 ; @SSPP_QOS_CTRL_DANGER_SAFE_EN
	.comm	_SSPP_QOS_CTRL,4,2              ; @SSPP_QOS_CTRL
	.no_dead_strip	_dpu_hw_sspp_setup_qos_ctrl
.subsections_via_symbols
