	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpu_hw_sspp_setup_rects
_dpu_hw_sspp_setup_rects:               ## @dpu_hw_sspp_setup_rects
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	_DPU_SSPP_SRC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	callq	__sspp_subblk_offset
	testq	%r13, %r13
	je	LBB0_12
## %bb.1:
	testq	%rax, %rax
	jne	LBB0_12
## %bb.2:
	movq	_DPU_SSPP_RECT_SOLO@GOTPCREL(%rip), %rdi
	movq	_DPU_SSPP_RECT_0@GOTPCREL(%rip), %r8
	movq	_SSPP_OUT_XY@GOTPCREL(%rip), %rax
	movq	_SSPP_OUT_SIZE@GOTPCREL(%rip), %rcx
	movq	_SSPP_SRC_XY@GOTPCREL(%rip), %rdx
	movq	_SSPP_SRC_SIZE@GOTPCREL(%rip), %rsi
	cmpl	%ebx, (%rdi)
	movl	%ebx, -60(%rbp)                 ## 4-byte Spill
	je	LBB0_5
## %bb.3:
	cmpl	%ebx, (%r8)
	je	LBB0_5
## %bb.4:
	movq	_SSPP_OUT_XY_REC1@GOTPCREL(%rip), %rax
	movq	_SSPP_OUT_SIZE_REC1@GOTPCREL(%rip), %rcx
	movq	_SSPP_SRC_XY_REC1@GOTPCREL(%rip), %rdx
	movq	_SSPP_SRC_SIZE_REC1@GOTPCREL(%rip), %rsi
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movl	(%rcx), %eax
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movl	(%rdx), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movl	(%rsi), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	leaq	16(%r13), %r15
	movl	16(%r13), %eax
	shll	$16, %eax
	orl	20(%r13), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	callq	_drm_rect_height
	movl	%eax, %ebx
	shll	$16, %ebx
	movq	%r15, %rdi
	callq	_drm_rect_width
	orl	%ebx, %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	leaq	8(%r13), %rbx
	movl	8(%r13), %r15d
	shll	$16, %r15d
	orl	12(%r13), %r15d
	movq	%rbx, %rdi
	callq	_drm_rect_height
	movl	%eax, %r14d
	shll	$16, %r14d
	movq	%rbx, %rdi
	callq	_drm_rect_width
	orl	%r14d, %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	-60(%rbp), %ebx                 ## 4-byte Reload
	movq	_DPU_SSPP_RECT_SOLO@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_7
## %bb.6:
	movq	(%r13), %rax
	movl	4(%rax), %r13d
	shll	$16, %r13d
	orl	(%rax), %r13d
	movl	12(%rax), %ebx
	shll	$16, %ebx
	orl	8(%rax), %ebx
	jmp	LBB0_11
LBB0_7:
	movq	_SSPP_SRC_YSTRIDE0@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %esi
	addl	(%rax), %esi
	movq	%r12, %rdi
	callq	_DPU_REG_READ
	movl	%eax, %r14d
	movq	_SSPP_SRC_YSTRIDE1@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %esi
	addl	(%rax), %esi
	movq	%r12, %rdi
	callq	_DPU_REG_READ
	movq	_DPU_SSPP_RECT_0@GOTPCREL(%rip), %rcx
	cmpl	%ebx, (%rcx)
	jne	LBB0_9
## %bb.8:
	andl	$-65536, %r14d                  ## imm = 0xFFFF0000
	movq	(%r13), %rcx
	movzwl	(%rcx), %r13d
	orl	%r14d, %r13d
	andl	$-65536, %eax                   ## imm = 0xFFFF0000
	movzwl	8(%rcx), %ebx
	jmp	LBB0_10
LBB0_9:
	movzwl	%r14w, %ecx
	movq	(%r13), %rdx
	movl	(%rdx), %r13d
	movl	8(%rdx), %ebx
	shll	$16, %r13d
	orl	%ecx, %r13d
	movzwl	%ax, %eax
	shll	$16, %ebx
LBB0_10:
	orl	%eax, %ebx
LBB0_11:
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	addl	-44(%rbp), %esi
	movq	%r12, %rdi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_DPU_REG_WRITE
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	addl	-44(%rbp), %esi
	movq	%r12, %rdi
	movl	-64(%rbp), %edx                 ## 4-byte Reload
	callq	_DPU_REG_WRITE
	movl	-72(%rbp), %esi                 ## 4-byte Reload
	addl	-44(%rbp), %esi
	movq	%r12, %rdi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_DPU_REG_WRITE
	movl	-76(%rbp), %esi                 ## 4-byte Reload
	addl	-44(%rbp), %esi
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	_DPU_REG_WRITE
	movq	_SSPP_SRC_YSTRIDE0@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %esi
	addl	(%rax), %esi
	movq	%r12, %rdi
	movl	%r13d, %edx
	callq	_DPU_REG_WRITE
	movq	_SSPP_SRC_YSTRIDE1@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %esi
	addl	(%rax), %esi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_DPU_REG_WRITE
LBB0_12:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DPU_SSPP_SRC,4,2               ## @DPU_SSPP_SRC
	.comm	_DPU_SSPP_RECT_SOLO,4,2         ## @DPU_SSPP_RECT_SOLO
	.comm	_DPU_SSPP_RECT_0,4,2            ## @DPU_SSPP_RECT_0
	.comm	_SSPP_SRC_SIZE,4,2              ## @SSPP_SRC_SIZE
	.comm	_SSPP_SRC_XY,4,2                ## @SSPP_SRC_XY
	.comm	_SSPP_OUT_SIZE,4,2              ## @SSPP_OUT_SIZE
	.comm	_SSPP_OUT_XY,4,2                ## @SSPP_OUT_XY
	.comm	_SSPP_SRC_SIZE_REC1,4,2         ## @SSPP_SRC_SIZE_REC1
	.comm	_SSPP_SRC_XY_REC1,4,2           ## @SSPP_SRC_XY_REC1
	.comm	_SSPP_OUT_SIZE_REC1,4,2         ## @SSPP_OUT_SIZE_REC1
	.comm	_SSPP_OUT_XY_REC1,4,2           ## @SSPP_OUT_XY_REC1
	.comm	_SSPP_SRC_YSTRIDE0,4,2          ## @SSPP_SRC_YSTRIDE0
	.comm	_SSPP_SRC_YSTRIDE1,4,2          ## @SSPP_SRC_YSTRIDE1
	.no_dead_strip	_dpu_hw_sspp_setup_rects
.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_rects
_dpu_hw_sspp_setup_rects:               ; @dpu_hw_sspp_setup_rects
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x2
	mov	x22, 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, #28
	bl	__sspp_subblk_offset
	cbz	x22, LBB0_8
; %bb.1:
	cbnz	x0, LBB0_8
; %bb.2:
Lloh3:
	adrp	x27, _DPU_SSPP_RECT_SOLO@GOTPAGE
Lloh4:
	ldr	x27, [x27, _DPU_SSPP_RECT_SOLO@GOTPAGEOFF]
	ldr	w8, [x27]
Lloh5:
	adrp	x13, _DPU_SSPP_RECT_0@GOTPAGE
Lloh6:
	ldr	x13, [x13, _DPU_SSPP_RECT_0@GOTPAGEOFF]
Lloh7:
	adrp	x9, _SSPP_OUT_XY@GOTPAGE
Lloh8:
	ldr	x9, [x9, _SSPP_OUT_XY@GOTPAGEOFF]
Lloh9:
	adrp	x10, _SSPP_OUT_SIZE@GOTPAGE
Lloh10:
	ldr	x10, [x10, _SSPP_OUT_SIZE@GOTPAGEOFF]
Lloh11:
	adrp	x11, _SSPP_SRC_XY@GOTPAGE
Lloh12:
	ldr	x11, [x11, _SSPP_SRC_XY@GOTPAGEOFF]
Lloh13:
	adrp	x12, _SSPP_SRC_SIZE@GOTPAGE
Lloh14:
	ldr	x12, [x12, _SSPP_SRC_SIZE@GOTPAGEOFF]
Lloh15:
	ldr	w13, [x13]
	cmp	w8, w23
Lloh16:
	adrp	x8, _SSPP_OUT_XY_REC1@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SSPP_OUT_XY_REC1@GOTPAGEOFF]
Lloh18:
	adrp	x14, _SSPP_OUT_SIZE_REC1@GOTPAGE
Lloh19:
	ldr	x14, [x14, _SSPP_OUT_SIZE_REC1@GOTPAGEOFF]
	ccmp	w13, w23, #4, ne
Lloh20:
	adrp	x13, _SSPP_SRC_XY_REC1@GOTPAGE
Lloh21:
	ldr	x13, [x13, _SSPP_SRC_XY_REC1@GOTPAGEOFF]
Lloh22:
	adrp	x15, _SSPP_SRC_SIZE_REC1@GOTPAGE
Lloh23:
	ldr	x15, [x15, _SSPP_SRC_SIZE_REC1@GOTPAGEOFF]
	csel	x12, x12, x15, eq
	csel	x11, x11, x13, eq
	csel	x10, x10, x14, eq
	csel	x8, x9, x8, eq
	ldr	w9, [x8]
	ldr	w8, [x10]
	stp	w8, w9, [sp, #20]               ; 8-byte Folded Spill
	ldr	w10, [x11]
	ldr	w28, [x12]
	mov	x21, x22
	ldr	w8, [x21, #16]!
	ldr	w9, [x22, #20]
	orr	w8, w9, w8, lsl #16
	stp	w8, w10, [sp, #12]              ; 8-byte Folded Spill
	mov	x0, x21
	bl	_drm_rect_height
	mov	x24, x0
	mov	x0, x21
	bl	_drm_rect_width
	orr	w24, w0, w24, lsl #16
	mov	x25, x22
	ldp	w8, w9, [x25, #8]!
	orr	w8, w9, w8, lsl #16
	str	w8, [sp, #8]                    ; 4-byte Folded Spill
	mov	x0, x25
	bl	_drm_rect_height
	mov	x26, x0
	mov	x0, x25
	bl	_drm_rect_width
	orr	w25, w0, w26, lsl #16
	ldr	w8, [x27]
Lloh24:
	adrp	x9, _SSPP_SRC_YSTRIDE0@GOTPAGE
Lloh25:
	ldr	x9, [x9, _SSPP_SRC_YSTRIDE0@GOTPAGEOFF]
Lloh26:
	adrp	x27, _SSPP_SRC_YSTRIDE1@GOTPAGE
Lloh27:
	ldr	x27, [x27, _SSPP_SRC_YSTRIDE1@GOTPAGEOFF]
	cmp	w8, w23
	b.ne	LBB0_4
; %bb.3:
	mov	x21, x9
	mov	x20, x27
	ldr	x8, [x22]
	ldp	w9, w10, [x8]
	orr	w26, w9, w10, lsl #16
	ldp	w9, w8, [x8, #8]
	orr	w27, w9, w8, lsl #16
	b	LBB0_7
LBB0_4:
	mov	x21, x9
	ldr	w8, [x9]
	ldr	w9, [sp, #28]
	add	w1, w9, w8
	mov	x0, x19
	bl	_DPU_REG_READ
	mov	x26, x0
	mov	x20, x27
	ldr	w8, [x27]
	ldr	w9, [sp, #28]
	add	w1, w9, w8
	mov	x0, x19
	bl	_DPU_REG_READ
	mov	x27, x0
Lloh28:
	adrp	x8, _DPU_SSPP_RECT_0@GOTPAGE
Lloh29:
	ldr	x8, [x8, _DPU_SSPP_RECT_0@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	cmp	w8, w23
	b.ne	LBB0_6
; %bb.5:
	and	w8, w26, #0xffff0000
	ldr	x9, [x22]
	ldrh	w10, [x9]
	orr	w26, w10, w8
	and	w8, w27, #0xffff0000
	ldrh	w9, [x9, #8]
	orr	w27, w9, w8
	b	LBB0_7
LBB0_6:
	ldr	x8, [x22]
	ldr	w9, [x8]
	bfi	w26, w9, #16, #16
	ldr	w8, [x8, #8]
	bfi	w27, w8, #16, #16
LBB0_7:
	ldr	w8, [sp, #28]
	add	w1, w8, w28
	mov	x0, x19
	mov	x2, x24
	bl	_DPU_REG_WRITE
	ldr	w8, [sp, #28]
	ldp	w2, w9, [sp, #12]               ; 8-byte Folded Reload
	add	w1, w8, w9
	mov	x0, x19
	bl	_DPU_REG_WRITE
	ldr	w8, [sp, #28]
	ldr	w9, [sp, #20]                   ; 4-byte Folded Reload
	add	w1, w8, w9
	mov	x0, x19
	mov	x2, x25
	bl	_DPU_REG_WRITE
	ldp	w9, w8, [sp, #24]               ; 4-byte Folded Reload
	add	w1, w8, w9
	mov	x0, x19
	ldr	w2, [sp, #8]                    ; 4-byte Folded Reload
	bl	_DPU_REG_WRITE
	ldr	w8, [x21]
	ldr	w9, [sp, #28]
	add	w1, w9, w8
	mov	x0, x19
	mov	x2, x26
	bl	_DPU_REG_WRITE
	ldr	w8, [x20]
	ldr	w9, [sp, #28]
	add	w1, w9, w8
	mov	x0, x19
	mov	x2, x27
	bl	_DPU_REG_WRITE
LBB0_8:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh15
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_DPU_SSPP_SRC,4,2               ; @DPU_SSPP_SRC
	.comm	_DPU_SSPP_RECT_SOLO,4,2         ; @DPU_SSPP_RECT_SOLO
	.comm	_DPU_SSPP_RECT_0,4,2            ; @DPU_SSPP_RECT_0
	.comm	_SSPP_SRC_SIZE,4,2              ; @SSPP_SRC_SIZE
	.comm	_SSPP_SRC_XY,4,2                ; @SSPP_SRC_XY
	.comm	_SSPP_OUT_SIZE,4,2              ; @SSPP_OUT_SIZE
	.comm	_SSPP_OUT_XY,4,2                ; @SSPP_OUT_XY
	.comm	_SSPP_SRC_SIZE_REC1,4,2         ; @SSPP_SRC_SIZE_REC1
	.comm	_SSPP_SRC_XY_REC1,4,2           ; @SSPP_SRC_XY_REC1
	.comm	_SSPP_OUT_SIZE_REC1,4,2         ; @SSPP_OUT_SIZE_REC1
	.comm	_SSPP_OUT_XY_REC1,4,2           ; @SSPP_OUT_XY_REC1
	.comm	_SSPP_SRC_YSTRIDE0,4,2          ; @SSPP_SRC_YSTRIDE0
	.comm	_SSPP_SRC_YSTRIDE1,4,2          ; @SSPP_SRC_YSTRIDE1
	.no_dead_strip	_dpu_hw_sspp_setup_rects
.subsections_via_symbols
