	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _dpu_plane_set_qos_lut
__dpu_plane_set_qos_lut:                ## @_dpu_plane_set_qos_lut
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	callq	_to_dpu_plane
	movq	%rax, %rbx
	cmpl	$0, 16(%rax)
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	movq	8(%r14), %rax
	movl	(%rax), %edi
	movl	(%r14), %esi
	callq	_dpu_get_dpu_format_ext
	movq	%rax, %r15
	movq	%rbx, %rdi
	addq	$40, %rdi
	callq	_drm_rect_width
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	__dpu_plane_calc_fill_level
	movq	%rax, %r13
	testq	%r15, %r15
	je	LBB0_5
## %bb.3:
	movq	%r15, %rdi
	callq	_DPU_FORMAT_IS_LINEAR
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_DPU_QOS_LUT_USAGE_LINEAR@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_1:
	movq	_DPU_QOS_LUT_USAGE_NRT@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	jmp	LBB0_6
LBB0_5:
	movq	_DPU_QOS_LUT_USAGE_MACROTILE@GOTPCREL(%rip), %rax
LBB0_6:
	movq	(%rax), %r12
	movq	32(%rbx), %rax
	leaq	(,%r12,4), %rdi
	addq	(%rax), %rdi
	movq	%r13, %rsi
	callq	__dpu_plane_get_qos_lut
	movl	%eax, %r14d
	movl	%eax, (%rbx)
	movq	24(%rbx), %rdi
	movq	_SSPP_VIG0@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%r15, %r15
	movl	$0, %esi
	je	LBB0_8
## %bb.7:
	movl	(%r15), %esi
LBB0_8:
	subq	%rax, %rdi
	movl	16(%rbx), %edx
                                        ## kill: def $esi killed $esi killed $rsi
	movq	%r13, %rcx
	movl	%r14d, %r8d
	movq	%r12, %r9
	callq	_trace_dpu_perf_set_qos_luts
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movq	24(%rbx), %rdx
	movq	_SSPP_VIG0@GOTPCREL(%rip), %rax
	subq	(%rax), %rdx
	movl	16(%rbx), %r8d
	movl	%r14d, (%rsp)
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rcx
	movq	%r13, %r9
	callq	_DPU_DEBUG
	movq	8(%rbx), %rdi
	movq	(%rdi), %rax
	movq	%rbx, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DPU_QOS_LUT_USAGE_NRT,8,3      ## @DPU_QOS_LUT_USAGE_NRT
	.comm	_DPU_QOS_LUT_USAGE_LINEAR,8,3   ## @DPU_QOS_LUT_USAGE_LINEAR
	.comm	_DPU_QOS_LUT_USAGE_MACROTILE,8,3 ## @DPU_QOS_LUT_USAGE_MACROTILE
	.comm	_SSPP_VIG0,8,3                  ## @SSPP_VIG0
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"plane%u: pnum:%d fmt: %4.4s rt:%d fl:%u lut:0x%llx\n"

	.no_dead_strip	__dpu_plane_set_qos_lut
.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_lut
__dpu_plane_set_qos_lut:                ; @_dpu_plane_set_qos_lut
	.cfi_startproc
; %bb.0:
	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	x21, x1
	mov	x20, x0
	bl	_to_dpu_plane
	mov	x19, x0
	ldr	w8, [x0, #16]
	cbz	w8, LBB0_4
; %bb.1:
	ldr	x8, [x21, #8]
	ldr	w0, [x8]
	ldr	w1, [x21]
	bl	_dpu_get_dpu_format_ext
	mov	x21, x0
	add	x0, x19, #40
	bl	_drm_rect_width
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	__dpu_plane_calc_fill_level
	mov	x22, x0
	cbz	x21, LBB0_5
; %bb.2:
	mov	x0, x21
	bl	_DPU_FORMAT_IS_LINEAR
	cbz	x0, LBB0_5
; %bb.3:
Lloh0:
	adrp	x8, _DPU_QOS_LUT_USAGE_LINEAR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DPU_QOS_LUT_USAGE_LINEAR@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
	mov	x21, #0
	mov	x22, #0
Lloh2:
	adrp	x8, _DPU_QOS_LUT_USAGE_NRT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DPU_QOS_LUT_USAGE_NRT@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh4:
	adrp	x8, _DPU_QOS_LUT_USAGE_MACROTILE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DPU_QOS_LUT_USAGE_MACROTILE@GOTPAGEOFF]
LBB0_6:
	ldr	x24, [x8]
	ldr	x8, [x19, #32]
	ldr	x8, [x8]
	add	x0, x8, x24, lsl #2
	mov	x1, x22
	bl	__dpu_plane_get_qos_lut
	mov	x23, x0
	str	w0, [x19]
	ldr	x8, [x19, #24]
Lloh6:
	adrp	x25, _SSPP_VIG0@GOTPAGE
Lloh7:
	ldr	x25, [x25, _SSPP_VIG0@GOTPAGEOFF]
	ldr	x9, [x25]
	cbz	x21, LBB0_8
; %bb.7:
	ldr	w1, [x21]
	b	LBB0_9
LBB0_8:
	mov	w1, #0
LBB0_9:
	sub	x0, x8, x9
	ldr	w2, [x19, #16]
	mov	x3, x22
	mov	x4, x23
	mov	x5, x24
	bl	_trace_dpu_perf_set_qos_luts
	ldr	w1, [x20]
	ldr	x8, [x19, #24]
	ldr	x9, [x25]
	sub	x2, x8, x9
	ldr	w4, [x19, #16]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	mov	x3, x21
	mov	x5, x22
	mov	x6, x23
	bl	_DPU_DEBUG
	ldr	x0, [x19, #8]
	ldr	x2, [x0]
	mov	x1, x19
	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
	br	x2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_DPU_QOS_LUT_USAGE_NRT,8,3      ; @DPU_QOS_LUT_USAGE_NRT
	.comm	_DPU_QOS_LUT_USAGE_LINEAR,8,3   ; @DPU_QOS_LUT_USAGE_LINEAR
	.comm	_DPU_QOS_LUT_USAGE_MACROTILE,8,3 ; @DPU_QOS_LUT_USAGE_MACROTILE
	.comm	_SSPP_VIG0,8,3                  ; @SSPP_VIG0
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"plane%u: pnum:%d fmt: %4.4s rt:%d fl:%u lut:0x%llx\n"

	.no_dead_strip	__dpu_plane_set_qos_lut
.subsections_via_symbols
