	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _dpu_plane_set_qos_ctrl
__dpu_plane_set_qos_ctrl:               ## @_dpu_plane_set_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movl	%esi, %r15d
	movq	%rdi, %r14
	callq	_to_dpu_plane
	movq	%rax, %rbx
	movq	_DPU_PLANE_QOS_VBLANK_CTRL@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_2
## %bb.1:
	movq	48(%rbx), %rax
	movq	8(%rax), %rcx
	movq	%rcx, 16(%rbx)
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movl	%r15d, (%rbx)
LBB0_2:
	movq	_DPU_PLANE_QOS_VBLANK_AMORTIZE@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_4
## %bb.3:
	movl	$0, (%rbx)
	movq	$0, 16(%rbx)
LBB0_4:
	movq	_DPU_PLANE_QOS_PANIC_CTRL@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_6
## %bb.5:
	movl	%r15d, 4(%rbx)
LBB0_6:
	movl	32(%rbx), %r10d
	testl	%r10d, %r10d
	je	LBB0_8
## %bb.7:
	movl	(%rbx), %r8d
	movl	4(%rbx), %ecx
	jmp	LBB0_9
LBB0_8:
	movq	$0, (%rbx)
	xorl	%r8d, %r8d
	xorl	%ecx, %ecx
LBB0_9:
	movl	(%r14), %esi
	movq	40(%rbx), %rdx
	movq	_SSPP_VIG0@GOTPCREL(%rip), %rdi
	subq	(%rdi), %rdx
	movq	16(%rbx), %r9
	movl	8(%rbx), %eax
	leaq	L_.str(%rip), %rdi
	pushq	%r10
	pushq	%rax
	callq	_DPU_DEBUG
	addq	$16, %rsp
	movq	24(%rbx), %rdi
	movq	(%rdi), %rax
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DPU_PLANE_QOS_VBLANK_CTRL,4,2  ## @DPU_PLANE_QOS_VBLANK_CTRL
	.comm	_DPU_PLANE_QOS_VBLANK_AMORTIZE,4,2 ## @DPU_PLANE_QOS_VBLANK_AMORTIZE
	.comm	_DPU_PLANE_QOS_PANIC_CTRL,4,2   ## @DPU_PLANE_QOS_PANIC_CTRL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"plane%u: pnum:%d ds:%d vb:%d pri[0x%x, 0x%x] is_rt:%d\n"

	.comm	_SSPP_VIG0,8,3                  ## @SSPP_VIG0
	.no_dead_strip	__dpu_plane_set_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_plane_set_qos_ctrl
__dpu_plane_set_qos_ctrl:               ; @_dpu_plane_set_qos_ctrl
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x22, x2
	mov	x21, x1
	mov	x20, x0
	bl	_to_dpu_plane
	mov	x19, x0
Lloh0:
	adrp	x8, _DPU_PLANE_QOS_VBLANK_CTRL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DPU_PLANE_QOS_VBLANK_CTRL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_2
; %bb.1:
	ldr	x8, [x19, #48]
	ldr	x9, [x8, #8]
	str	x9, [x19, #16]
	ldr	w8, [x8]
	str	w8, [x19, #8]
	str	w21, [x19]
LBB0_2:
Lloh3:
	adrp	x8, _DPU_PLANE_QOS_VBLANK_AMORTIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DPU_PLANE_QOS_VBLANK_AMORTIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_4
; %bb.3:
	str	wzr, [x19]
	str	xzr, [x19, #16]
LBB0_4:
Lloh6:
	adrp	x8, _DPU_PLANE_QOS_PANIC_CTRL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DPU_PLANE_QOS_PANIC_CTRL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_6
; %bb.5:
	str	w21, [x19, #4]
LBB0_6:
	ldr	w7, [x19, #32]
	cbz	w7, LBB0_8
; %bb.7:
	ldp	w4, w3, [x19]
	b	LBB0_9
LBB0_8:
	mov	w4, #0
	mov	w3, #0
	str	xzr, [x19]
LBB0_9:
	ldr	w1, [x20]
	ldr	x8, [x19, #40]
Lloh9:
	adrp	x9, _SSPP_VIG0@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SSPP_VIG0@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	sub	x2, x8, x9
	ldr	x5, [x19, #16]
	ldr	w6, [x19, #8]
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DPU_DEBUG
	ldr	x0, [x19, #24]
	ldr	x2, [x0]
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	br	x2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_DPU_PLANE_QOS_VBLANK_CTRL,4,2  ; @DPU_PLANE_QOS_VBLANK_CTRL
	.comm	_DPU_PLANE_QOS_VBLANK_AMORTIZE,4,2 ; @DPU_PLANE_QOS_VBLANK_AMORTIZE
	.comm	_DPU_PLANE_QOS_PANIC_CTRL,4,2   ; @DPU_PLANE_QOS_PANIC_CTRL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"plane%u: pnum:%d ds:%d vb:%d pri[0x%x, 0x%x] is_rt:%d\n"

	.comm	_SSPP_VIG0,8,3                  ; @SSPP_VIG0
	.no_dead_strip	__dpu_plane_set_qos_ctrl
.subsections_via_symbols
