	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function msm_drm_uninit
_msm_drm_uninit:                        ## @msm_drm_uninit
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_to_platform_device
	movq	%rax, %rdi
	callq	_platform_get_drvdata
	movq	%rax, %r14
	movq	(%rax), %rbx
	movq	40(%rbx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	48(%rbx), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	cmpq	$0, 8(%r14)
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_drm_dev_unregister
	movq	%r14, %rdi
	callq	_drm_atomic_helper_shutdown
LBB0_2:
	movl	4(%rbx), %edi
	callq	_flush_workqueue
	movl	(%rbx), %eax
	testl	%eax, %eax
	jle	LBB0_7
## %bb.3:
	movq	32(%rbx), %rdi
	movl	$8, %r13d
	xorl	%r12d, %r12d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r12
	movslq	%eax, %rcx
	addq	$16, %r13
	cmpq	%rcx, %r12
	jge	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, -8(%rdi,%r13)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	addq	%r13, %rdi
	callq	_kthread_destroy_worker
	movq	32(%rbx), %rdi
	movq	$0, -8(%rdi,%r13)
	movl	(%rbx), %eax
	jmp	LBB0_6
LBB0_7:
	movq	%r14, %rdi
	callq	_msm_gem_shrinker_cleanup
	movq	%r14, %rdi
	callq	_drm_kms_helper_poll_fini
	movq	%rbx, %rdi
	callq	_msm_perf_debugfs_cleanup
	movq	%rbx, %rdi
	callq	_msm_rd_debugfs_cleanup
	movq	%r14, %rdi
	callq	_drm_mode_config_cleanup
	movq	%r15, %rdi
	callq	_pm_runtime_get_sync
	movq	%r14, %rdi
	callq	_drm_irq_uninstall
	movq	%r15, %rdi
	callq	_pm_runtime_put_sync
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.8:
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	callq	*(%rax)
LBB0_10:
	cmpq	$0, 8(%rbx)
	je	LBB0_12
## %bb.11:
	movq	_DMA_ATTR_NO_KERNEL_MAPPING@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	leaq	20(%rbx), %rdi
	callq	_drm_mm_takedown
	movl	16(%rbx), %esi
	movq	8(%rbx), %rcx
	movq	%r15, %rdi
	xorl	%edx, %edx
	movq	%r12, %r8
	callq	_dma_free_attrs
LBB0_12:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_component_unbind_all
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_15
## %bb.13:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	%r14, %rdi
	callq	*(%rax)
LBB0_15:
	movq	$0, (%r14)
	movq	%r14, %rdi
	callq	_drm_dev_put
	movl	4(%rbx), %edi
	callq	_destroy_workqueue
	movq	%rbx, %rdi
	callq	_kfree
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_ATTR_NO_KERNEL_MAPPING,8,3 ## @DMA_ATTR_NO_KERNEL_MAPPING
	.comm	_fbdev,8,3                      ## @fbdev
	.no_dead_strip	_msm_drm_uninit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function msm_drm_uninit
_msm_drm_uninit:                        ; @msm_drm_uninit
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x0
	bl	_to_platform_device
	bl	_platform_get_drvdata
	mov	x20, x0
	ldp	x19, x8, [x0]
	ldp	x23, x22, [x19, #40]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_drm_dev_unregister
	mov	x0, x20
	bl	_drm_atomic_helper_shutdown
LBB0_2:
	ldr	w0, [x19, #4]
	bl	_flush_workqueue
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.3:
	mov	x24, #0
	mov	x25, #0
	ldr	x9, [x19, #32]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x25, x25, #1
	add	x24, x24, #16
	cmp	x25, w8, sxtw
	b.ge	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9, x24]
	cbz	x10, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x9, x24
	add	x0, x8, #8
	bl	_kthread_destroy_worker
	ldr	x9, [x19, #32]
	str	xzr, [x9, x24]
	ldr	w8, [x19]
	b	LBB0_4
LBB0_7:
	mov	x0, x20
	bl	_msm_gem_shrinker_cleanup
	mov	x0, x20
	bl	_drm_kms_helper_poll_fini
	mov	x0, x19
	bl	_msm_perf_debugfs_cleanup
	mov	x0, x19
	bl	_msm_rd_debugfs_cleanup
	mov	x0, x20
	bl	_drm_mode_config_cleanup
	mov	x0, x21
	bl	_pm_runtime_get_sync
	mov	x0, x20
	bl	_drm_irq_uninstall
	mov	x0, x21
	bl	_pm_runtime_put_sync
	cbz	x22, LBB0_10
; %bb.8:
	ldr	x8, [x22]
	cbz	x8, LBB0_10
; %bb.9:
	ldr	x8, [x8]
	mov	x0, x22
	blr	x8
LBB0_10:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_12
; %bb.11:
Lloh0:
	adrp	x8, _DMA_ATTR_NO_KERNEL_MAPPING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMA_ATTR_NO_KERNEL_MAPPING@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
	add	x0, x19, #20
	bl	_drm_mm_takedown
	ldr	w1, [x19, #16]
	ldr	x3, [x19, #8]
	mov	x0, x21
	mov	x2, #0
	mov	x4, x22
	bl	_dma_free_attrs
LBB0_12:
	mov	x0, x21
	mov	x1, x20
	bl	_component_unbind_all
	cbz	x23, LBB0_15
; %bb.13:
	ldr	x8, [x23]
	cbz	x8, LBB0_15
; %bb.14:
	ldr	x8, [x8]
	mov	x0, x20
	blr	x8
LBB0_15:
	str	xzr, [x20]
	mov	x0, x20
	bl	_drm_dev_put
	ldr	w0, [x19, #4]
	bl	_destroy_workqueue
	mov	x0, x19
	bl	_kfree
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_ATTR_NO_KERNEL_MAPPING,8,3 ; @DMA_ATTR_NO_KERNEL_MAPPING
	.comm	_fbdev,8,3                      ; @fbdev
	.no_dead_strip	_msm_drm_uninit
.subsections_via_symbols
