	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function armada_drm_crtc_destroy
_armada_drm_crtc_destroy:               ## @armada_drm_crtc_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
	movq	%rdi, %r14
	callq	_drm_to_armada_crtc
	movq	%rax, %rbx
	movq	(%r14), %rax
	movq	(%rax), %r14
	movq	32(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_drm_gem_object_put_unlocked
LBB0_2:
	movq	(%r14), %rax
	movq	(%rbx), %rcx
	movq	$0, (%rax,%rcx,8)
	movq	%rbx, %rdi
	addq	$8, %rdi
	callq	_drm_crtc_cleanup
	movq	24(%rbx), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	*%rax
LBB0_4:
	movq	_LCD_SPU_IRQ_ENA@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%rbx), %rsi
	xorl	%edi, %edi
	callq	_writel_relaxed
	movl	8(%rbx), %edi
	callq	_of_node_put
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LCD_SPU_IRQ_ENA,8,3            ## @LCD_SPU_IRQ_ENA
	.no_dead_strip	_armada_drm_crtc_destroy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function armada_drm_crtc_destroy
_armada_drm_crtc_destroy:               ; @armada_drm_crtc_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
	mov	x20, x0
	bl	_drm_to_armada_crtc
	mov	x19, x0
	ldr	x8, [x20]
	ldr	x20, [x8]
	ldr	x0, [x0, #32]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_drm_gem_object_put_unlocked
LBB0_2:
	ldr	x8, [x20]
	ldr	x9, [x19]
	str	xzr, [x8, x9, lsl #3]
	add	x0, x19, #8
	bl	_drm_crtc_cleanup
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x19
	blr	x8
LBB0_4:
	ldr	x8, [x19, #16]
Lloh0:
	adrp	x9, _LCD_SPU_IRQ_ENA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LCD_SPU_IRQ_ENA@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel_relaxed
	ldr	w0, [x19, #8]
	bl	_of_node_put
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_kfree
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LCD_SPU_IRQ_ENA,8,3            ; @LCD_SPU_IRQ_ENA
	.no_dead_strip	_armada_drm_crtc_destroy
.subsections_via_symbols
