	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpu_plane_destroy
_dpu_plane_destroy:                     ## @dpu_plane_destroy
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movq	%rdi, %rbx
	callq	_to_dpu_plane
	movq	%rax, %r14
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	callq	_DPU_DEBUG_PLANE
	testq	%r14, %r14
	je	LBB0_2
## %bb.4:
	movq	_DPU_PLANE_QOS_PANIC_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	__dpu_plane_set_qos_ctrl
	movq	%r14, %rdi
	addq	$4, %rdi
	callq	_mutex_destroy
	movq	%rbx, %rdi
	callq	_drm_plane_cleanup
	movl	(%r14), %edi
	callq	_dpu_hw_sspp_destroy
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
LBB0_3:
	leaq	L_.str(%rip), %rsi
	xorl	%edi, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_DPU_DEBUG_PLANE                ## TAILCALL
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_DPU_PLANE_QOS_PANIC_CTRL,4,2   ## @DPU_PLANE_QOS_PANIC_CTRL
	.no_dead_strip	_dpu_plane_destroy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dpu_plane_destroy
_dpu_plane_destroy:                     ; @dpu_plane_destroy
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	bl	_to_dpu_plane
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DPU_DEBUG_PLANE
	cbz	x19, LBB0_4
; %bb.2:
Lloh2:
	adrp	x8, _DPU_PLANE_QOS_PANIC_CTRL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DPU_PLANE_QOS_PANIC_CTRL@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #0
	bl	__dpu_plane_set_qos_ctrl
	add	x0, x19, #4
	bl	_mutex_destroy
	mov	x0, x20
	bl	_drm_plane_cleanup
	ldr	w0, [x19]
	bl	_dpu_hw_sspp_destroy
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_kfree
LBB0_3:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_DPU_DEBUG_PLANE
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_DPU_PLANE_QOS_PANIC_CTRL,4,2   ; @DPU_PLANE_QOS_PANIC_CTRL
	.no_dead_strip	_dpu_plane_destroy
.subsections_via_symbols
