	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _dpu_plane_set_ot_limit
__dpu_plane_set_ot_limit:               ## @_dpu_plane_set_ot_limit
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %rbx
	callq	_to_dpu_plane
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	__dpu_plane_get_kms
	movq	%rax, %r14
	leaq	-88(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	movq	(%r13), %rax
	movq	(%rax), %rcx
	movl	4(%rcx), %ecx
	movl	%ecx, -48(%rbp)
	movq	8(%rax), %rax
	movq	_SSPP_NONE@GOTPCREL(%rip), %rcx
	subq	(%rcx), %rax
	movq	%rax, -56(%rbp)
	leaq	12(%r13), %rbx
	movq	%rbx, %rdi
	callq	_drm_rect_width
	movl	%eax, -64(%rbp)
	movq	%rbx, %rdi
	callq	_drm_rect_height
	movl	%eax, -68(%rbp)
	xorl	%eax, %eax
	cmpl	$0, 8(%r13)
	sete	%al
	movl	%eax, -88(%rbp)
	movq	%r12, %rdi
	callq	_drm_mode_vrefresh
	movl	%eax, -72(%rbp)
	movq	_VBIF_RT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -76(%rbp)
	movq	(%r13), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
	movl	$1, -84(%rbp)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_dpu_vbif_set_ot_limit
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SSPP_NONE,8,3                  ## @SSPP_NONE
	.comm	_VBIF_RT,4,2                    ## @VBIF_RT
	.no_dead_strip	__dpu_plane_set_ot_limit
.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_ot_limit
__dpu_plane_set_ot_limit:               ; @_dpu_plane_set_ot_limit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x1
	mov	x20, x0
	bl	_to_dpu_plane
	mov	x21, x0
	mov	x0, x20
	bl	__dpu_plane_get_kms
	mov	x20, x0
	mov	x0, sp
	mov	w1, #0
	mov	w2, #48
	bl	_memset
	ldr	x8, [x21]
	ldr	x9, [x8]
	ldr	w9, [x9, #4]
	str	w9, [sp, #40]
	ldr	x8, [x8, #8]
Lloh0:
	adrp	x9, _SSPP_NONE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SSPP_NONE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	sub	x8, x8, x9
	str	x8, [sp, #32]
	add	x22, x21, #12
	mov	x0, x22
	bl	_drm_rect_width
	str	w0, [sp, #24]
	mov	x0, x22
	bl	_drm_rect_height
	str	w0, [sp, #20]
	ldr	w8, [x21, #8]
	cmp	w8, #0
	cset	w8, eq
	str	w8, [sp]
	mov	x0, x19
	bl	_drm_mode_vrefresh
Lloh3:
	adrp	x8, _VBIF_RT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VBIF_RT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	stp	w8, w0, [sp, #12]
	ldr	x8, [x21]
	ldr	x8, [x8]
	ldr	w8, [x8]
	mov	w9, #1
	stp	w9, w8, [sp, #4]
	mov	x1, sp
	mov	x0, x20
	bl	_dpu_vbif_set_ot_limit
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SSPP_NONE,8,3                  ; @SSPP_NONE
	.comm	_VBIF_RT,4,2                    ; @VBIF_RT
	.no_dead_strip	__dpu_plane_set_ot_limit
.subsections_via_symbols
