	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function exynos_drm_unregister_devices
_exynos_drm_unregister_devices:         ## @exynos_drm_unregister_devices
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_exynos_drm_drivers@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_8
## %bb.1:
	movl	%eax, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$1, %r13
	jle	LBB0_8
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	%r15, %r13
	decq	%r15
	movq	_exynos_drm_drivers@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movl	%r15d, %r14d
	shlq	$4, %r14
	movq	8(%r12,%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_DRM_VIRTUAL_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12,%r14)
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edi, %edi
	callq	_platform_find_device_by_driver
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rbx
	addq	%r14, %r12
	addq	$8, %r12
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	callq	_put_device
	movq	%rbx, %rdi
	callq	_to_platform_device
	movl	%eax, %edi
	callq	_platform_device_unregister
	movq	(%r12), %rsi
	xorl	%edi, %edi
	callq	_platform_find_device_by_driver
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_6
	jmp	LBB0_7
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_exynos_drm_drivers,8,3         ## @exynos_drm_drivers
	.comm	_DRM_VIRTUAL_DEVICE,4,2         ## @DRM_VIRTUAL_DEVICE
	.no_dead_strip	_exynos_drm_unregister_devices
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function exynos_drm_unregister_devices
_exynos_drm_unregister_devices:         ; @exynos_drm_unregister_devices
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x20, _exynos_drm_drivers@GOTPAGE
Lloh1:
	ldr	x20, [x20, _exynos_drm_drivers@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_8
; %bb.1:
	mov	w21, w0
Lloh2:
	adrp	x22, _DRM_VIRTUAL_DEVICE@GOTPAGE
Lloh3:
	ldr	x22, [x22, _DRM_VIRTUAL_DEVICE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	x21, #1
	mov	x21, x23
	b.le	LBB0_8
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	sub	x23, x21, #1
	ldr	x8, [x20]
	add	x24, x8, w23, uxtw #4
	ldr	x1, [x24, #8]!
	cbz	x1, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	and	x9, x23, #0xffffffff
	lsl	x9, x9, #4
	ldr	w8, [x8, x9]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, #0
	bl	_platform_find_device_by_driver
	cbz	x0, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x19, x0
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x19
	bl	_put_device
	mov	x0, x19
	bl	_to_platform_device
	bl	_platform_device_unregister
	ldr	x1, [x24]
	mov	x0, #0
	bl	_platform_find_device_by_driver
	mov	x19, x0
	cbnz	x0, LBB0_7
	b	LBB0_2
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_exynos_drm_drivers,8,3         ; @exynos_drm_drivers
	.comm	_DRM_VIRTUAL_DEVICE,4,2         ; @DRM_VIRTUAL_DEVICE
	.no_dead_strip	_exynos_drm_unregister_devices
.subsections_via_symbols
