	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fimd_bind
_fimd_bind:                             ## @fimd_bind
	.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	%rdx, %rbx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_dev_get_drvdata
	movq	%rax, %r12
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, 48(%rax)
	movq	_WINDOWS_NR@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_5
## %bb.1:
	xorl	%r14d, %r14d
	movq	_fimd_formats@GOTPCREL(%rip), %r13
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %eax
	movq	40(%r12), %rcx
	movl	%eax, 16(%rcx,%r14)
	movl	(%r13), %edi
	callq	_ARRAY_SIZE
	movq	40(%r12), %rdx
	leaq	(%rdx,%r14), %rcx
	movl	%eax, 12(%rdx,%r14)
	movl	%ebx, (%rdx,%r14)
	movq	_fimd_win_types@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %eax
	movl	%eax, 8(%rdx,%r14)
	movq	_capabilities@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %eax
	movl	%eax, 4(%rdx,%r14)
	movq	32(%r12), %rsi
	addq	%r15, %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_exynos_plane_init
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movq	_WINDOWS_NR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$4, %r15
	addq	$20, %r14
	cmpq	%rax, %rbx
	jb	LBB0_3
LBB0_5:
	movq	_DEFAULT_WIN@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	shlq	$2, %rsi
	addq	32(%r12), %rsi
	movq	_EXYNOS_DISPLAY_TYPE_LCD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_fimd_crtc_ops@GOTPCREL(%rip), %rcx
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r12, %r8
	callq	_exynos_drm_crtc_create
	movq	%rax, (%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.13:
	movq	(%r12), %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	24(%r12), %rax
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.7:
	movq	_fimd_dp_clock_enable@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r12, %rcx
	addq	$16, %rcx
	movl	%eax, 16(%r12)
	movq	(%r12), %rax
	movq	%rcx, (%rax)
LBB0_8:
	movq	8(%r12), %rsi
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.9:
	movq	%rbx, %rdi
	callq	_exynos_dpi_bind
LBB0_10:
	movq	%rbx, %rdi
	callq	_is_drm_iommu_supported
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	(%r12), %rdi
	callq	_fimd_clear_channels
LBB0_12:
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_exynos_drm_register_dma        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WINDOWS_NR,4,2                 ## @WINDOWS_NR
	.comm	_fimd_formats,4,2               ## @fimd_formats
	.comm	_fimd_win_types,8,3             ## @fimd_win_types
	.comm	_capabilities,8,3               ## @capabilities
	.comm	_DEFAULT_WIN,8,3                ## @DEFAULT_WIN
	.comm	_EXYNOS_DISPLAY_TYPE_LCD,4,2    ## @EXYNOS_DISPLAY_TYPE_LCD
	.comm	_fimd_crtc_ops,4,2              ## @fimd_crtc_ops
	.comm	_fimd_dp_clock_enable,4,2       ## @fimd_dp_clock_enable
	.no_dead_strip	_fimd_bind
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fimd_bind
_fimd_bind:                             ; @fimd_bind
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x2
	mov	x19, x0
	bl	_dev_get_drvdata
	mov	x21, x0
	str	x20, [x0, #48]
Lloh0:
	adrp	x23, _WINDOWS_NR@GOTPAGE
Lloh1:
	ldr	x23, [x23, _WINDOWS_NR@GOTPAGEOFF]
	ldr	w8, [x23]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x24, #0
	mov	x25, #0
	mov	x22, #0
Lloh2:
	adrp	x26, _fimd_formats@GOTPAGE
Lloh3:
	ldr	x26, [x26, _fimd_formats@GOTPAGEOFF]
Lloh4:
	adrp	x27, _fimd_win_types@GOTPAGE
Lloh5:
	ldr	x27, [x27, _fimd_win_types@GOTPAGEOFF]
Lloh6:
	adrp	x28, _capabilities@GOTPAGE
Lloh7:
	ldr	x28, [x28, _capabilities@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x26]
	ldr	x9, [x21, #40]
	add	x9, x9, x24
	str	w8, [x9, #16]
	ldr	w0, [x26]
	bl	_ARRAY_SIZE
	ldp	x9, x8, [x21, #32]
	add	x3, x8, x24
	str	w0, [x3, #12]
	str	w22, [x3]
	ldr	x8, [x27]
	lsl	x10, x22, #2
	ldr	w8, [x8, x10]
	str	w8, [x3, #8]
	ldr	x8, [x28]
	ldr	w8, [x8, x10]
	str	w8, [x3, #4]
	add	x1, x9, x25
	mov	x0, x20
	mov	x2, x22
	bl	_exynos_plane_init
	cbnz	w0, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x22, x22, #1
	ldr	w8, [x23]
	add	x25, x25, #4
	add	x24, x24, #20
	cmp	x22, x8
	b.lo	LBB0_2
LBB0_4:
Lloh8:
	adrp	x8, _DEFAULT_WIN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DEFAULT_WIN@GOTPAGEOFF]
	ldr	x9, [x21, #32]
Lloh10:
	ldr	x8, [x8]
	add	x1, x9, x8, lsl #2
Lloh11:
	adrp	x8, _EXYNOS_DISPLAY_TYPE_LCD@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EXYNOS_DISPLAY_TYPE_LCD@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
Lloh14:
	adrp	x3, _fimd_crtc_ops@GOTPAGE
Lloh15:
	ldr	x3, [x3, _fimd_crtc_ops@GOTPAGEOFF]
	mov	x0, x20
	mov	x4, x21
	bl	_exynos_drm_crtc_create
	str	x0, [x21]
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.5:
	ldr	x0, [x21]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_6:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldr	x8, [x21, #24]
	ldr	x8, [x8]
	cbz	x8, LBB0_9
; %bb.8:
Lloh16:
	adrp	x8, _fimd_dp_clock_enable@GOTPAGE
Lloh17:
	ldr	x8, [x8, _fimd_dp_clock_enable@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	mov	x9, x21
	str	w8, [x9, #16]!
	ldr	x8, [x21]
	str	x9, [x8]
LBB0_9:
	ldr	x1, [x21, #8]
	cbz	x1, LBB0_11
; %bb.10:
	mov	x0, x20
	bl	_exynos_dpi_bind
LBB0_11:
	mov	x0, x20
	bl	_is_drm_iommu_supported
	cbz	x0, LBB0_13
; %bb.12:
	ldr	x0, [x21]
	bl	_fimd_clear_channels
LBB0_13:
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_exynos_drm_register_dma
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_WINDOWS_NR,4,2                 ; @WINDOWS_NR
	.comm	_fimd_formats,4,2               ; @fimd_formats
	.comm	_fimd_win_types,8,3             ; @fimd_win_types
	.comm	_capabilities,8,3               ; @capabilities
	.comm	_DEFAULT_WIN,8,3                ; @DEFAULT_WIN
	.comm	_EXYNOS_DISPLAY_TYPE_LCD,4,2    ; @EXYNOS_DISPLAY_TYPE_LCD
	.comm	_fimd_crtc_ops,4,2              ; @fimd_crtc_ops
	.comm	_fimd_dp_clock_enable,4,2       ; @fimd_dp_clock_enable
	.no_dead_strip	_fimd_bind
.subsections_via_symbols
