	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decon_bind
_decon_bind:                            ## @decon_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, %rbx
	callq	_dev_get_drvdata
	movq	%rax, %r15
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_decon_ctx_initialize
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movl	%eax, %r12d
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_DRM_DEV_ERROR
LBB0_10:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	_WINDOWS_NR@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_7
## %bb.2:
	xorl	%r14d, %r14d
	movq	_decon_formats@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %eax
	movq	24(%r15), %rcx
	movq	%r14, %rbx
	shlq	$4, %rbx
	movl	%eax, 12(%rcx,%rbx)
	movl	(%r13), %edi
	callq	_ARRAY_SIZE
	movq	24(%r15), %rdx
	leaq	(%rdx,%rbx), %rcx
	movl	%eax, 8(%rdx,%rbx)
	movl	%r14d, (%rdx,%rbx)
	movq	_decon_win_types@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(,%r14,4), %rsi
	movl	(%rax,%r14,4), %eax
	movl	%eax, 4(%rdx,%rbx)
	addq	16(%r15), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %edx
	callq	_exynos_plane_init
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%r14
	movq	_WINDOWS_NR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpq	%rax, %r14
	jb	LBB0_5
LBB0_7:
	movq	_DEFAULT_WIN@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	shlq	$2, %rsi
	addq	16(%r15), %rsi
	movq	_EXYNOS_DISPLAY_TYPE_LCD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_decon_crtc_ops@GOTPCREL(%rip), %rcx
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r15, %r8
	callq	_exynos_drm_crtc_create
	movl	%eax, 8(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.11:
	movq	%r15, %rdi
	callq	_decon_ctx_remove
	movl	8(%r15), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_6:
	movl	%eax, %r12d
	jmp	LBB0_10
LBB0_8:
	movq	(%r15), %rsi
	xorl	%r12d, %r12d
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.9:
	movq	%rbx, %rdi
	callq	_exynos_dpi_bind
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"decon_ctx_initialize failed.\n"

	.comm	_WINDOWS_NR,4,2                 ## @WINDOWS_NR
	.comm	_decon_formats,4,2              ## @decon_formats
	.comm	_decon_win_types,8,3            ## @decon_win_types
	.comm	_DEFAULT_WIN,8,3                ## @DEFAULT_WIN
	.comm	_EXYNOS_DISPLAY_TYPE_LCD,4,2    ## @EXYNOS_DISPLAY_TYPE_LCD
	.comm	_decon_crtc_ops,4,2             ## @decon_crtc_ops
	.no_dead_strip	_decon_bind
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decon_bind
_decon_bind:                            ; @decon_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	x19, x2
	mov	x21, x0
	bl	_dev_get_drvdata
	mov	x20, x0
	mov	x1, x19
	bl	_decon_ctx_initialize
	cbz	w0, LBB0_3
; %bb.1:
	mov	x22, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_DRM_DEV_ERROR
LBB0_2:
	mov	x0, x22
	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_3:
Lloh2:
	adrp	x23, _WINDOWS_NR@GOTPAGE
Lloh3:
	ldr	x23, [x23, _WINDOWS_NR@GOTPAGEOFF]
	ldr	w8, [x23]
	cbz	w8, LBB0_7
; %bb.4:
	mov	x24, #0
	mov	x21, #0
	mov	w25, #1
Lloh4:
	adrp	x26, _decon_formats@GOTPAGE
Lloh5:
	ldr	x26, [x26, _decon_formats@GOTPAGEOFF]
Lloh6:
	adrp	x27, _decon_win_types@GOTPAGE
Lloh7:
	ldr	x27, [x27, _decon_win_types@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x26]
	ldr	x9, [x20, #24]
	add	x9, x9, x24
	str	w8, [x9, #12]
	ldr	w0, [x26]
	bl	_ARRAY_SIZE
	ldp	x9, x8, [x20, #16]
	add	x3, x8, x24
	str	w0, [x3, #8]
	str	w21, [x3]
	ldr	x10, [x27]
	ldr	w10, [x10, x21, lsl #2]
	str	w10, [x8, x25, lsl #2]
	add	x8, x9, x25
	sub	x1, x8, #1
	mov	x0, x19
	mov	x2, x21
	bl	_exynos_plane_init
	cbnz	w0, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, #1
	ldr	w8, [x23]
	add	x25, x25, #4
	add	x24, x24, #16
	cmp	x21, x8
	b.lo	LBB0_5
LBB0_7:
Lloh8:
	adrp	x8, _DEFAULT_WIN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DEFAULT_WIN@GOTPAGEOFF]
	ldr	x9, [x20, #16]
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, _decon_crtc_ops@GOTPAGE
Lloh15:
	ldr	x3, [x3, _decon_crtc_ops@GOTPAGEOFF]
	mov	x0, x19
	mov	x4, x20
	bl	_exynos_drm_crtc_create
	str	w0, [x20, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_10
; %bb.8:
	mov	x0, x20
	bl	_decon_ctx_remove
	ldr	w0, [x20, #8]
	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_9:
	mov	x22, x0
	b	LBB0_2
LBB0_10:
	ldr	x1, [x20]
	cbz	x1, LBB0_12
; %bb.11:
	mov	x0, x19
	bl	_exynos_dpi_bind
LBB0_12:
	mov	w22, #0
	b	LBB0_2
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"decon_ctx_initialize failed.\n"

	.comm	_WINDOWS_NR,4,2                 ; @WINDOWS_NR
	.comm	_decon_formats,4,2              ; @decon_formats
	.comm	_decon_win_types,8,3            ; @decon_win_types
	.comm	_DEFAULT_WIN,8,3                ; @DEFAULT_WIN
	.comm	_EXYNOS_DISPLAY_TYPE_LCD,4,2    ; @EXYNOS_DISPLAY_TYPE_LCD
	.comm	_decon_crtc_ops,4,2             ; @decon_crtc_ops
	.no_dead_strip	_decon_bind
.subsections_via_symbols
