	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_crtc_cleanup               ## -- Begin function drm_crtc_cleanup
	.p2align	4, 0x90
_drm_crtc_cleanup:                      ## @drm_crtc_cleanup
	.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, %rbx
	movq	48(%rdi), %r14
	callq	_drm_crtc_crc_fini
	movq	40(%rbx), %rdi
	callq	_kfree
	movq	$0, 40(%rbx)
	leaq	32(%rbx), %rdi
	callq	_drm_modeset_lock_fini
	leaq	28(%rbx), %rsi
	movq	%r14, %rdi
	callq	_drm_mode_object_unregister
	leaq	24(%rbx), %rdi
	callq	_list_del
	decl	(%r14)
	cmpq	$0, 8(%rbx)
	je	LBB0_1
## %bb.2:
	movq	16(%rbx), %rax
	xorl	%edi, %edi
	cmpq	$0, (%rax)
	sete	%dil
	jmp	LBB0_3
LBB0_1:
	xorl	%edi, %edi
LBB0_3:
	callq	_WARN_ON
	movq	8(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.4:
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	*%rax
LBB0_6:
	movq	(%rbx), %rdi
	callq	_kfree
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$56, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_memset                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_crtc_cleanup               ; -- Begin function drm_crtc_cleanup
	.p2align	2
_drm_crtc_cleanup:                      ; @drm_crtc_cleanup
	.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	x19, x0
	ldr	x20, [x0, #48]
	bl	_drm_crtc_crc_fini
	ldr	x0, [x19, #40]
	bl	_kfree
	str	xzr, [x19, #40]
	add	x0, x19, #32
	bl	_drm_modeset_lock_fini
	add	x1, x19, #28
	mov	x0, x20
	bl	_drm_mode_object_unregister
	add	x0, x19, #24
	bl	_list_del
	ldr	w8, [x20]
	sub	w8, w8, #1
	str	w8, [x20]
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w0, eq
	b	LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
	bl	_WARN_ON
	ldr	x1, [x19, #8]
	cbz	x1, LBB0_6
; %bb.4:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.5:
	mov	x0, x19
	blr	x8
LBB0_6:
	ldr	x0, [x19]
	bl	_kfree
	mov	x0, x19
	mov	w1, #0
	mov	w2, #56
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_memset
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
