	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tilcdc_init
_tilcdc_init:                           ## @tilcdc_init
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_to_platform_device
	movq	%rax, %r15
	movq	(%r13), %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	$104, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %r14
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_drm_dev_alloc
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_4:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %r12
	movq	%r14, (%rbx)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_platform_set_drvdata
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_drm_mode_config_init
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_tilcdc_get_external_components
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setg	%cl
	movl	%ecx, (%r14)
	leaq	L_.str(%rip), %rdi
	xorl	%esi, %esi
	callq	_alloc_ordered_workqueue
	movl	%eax, 100(%r14)
	testl	%eax, %eax
	je	LBB0_9
## %bb.5:
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movl	(%rax), %ebx
	movq	%rax, %rdi
	callq	_resource_size
	movl	%ebx, %edi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_ioremap_nocache
	movl	%eax, 96(%rbx)
	testl	%eax, %eax
	je	LBB0_12
## %bb.7:
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdi
	callq	_clk_get
	movq	%rax, 88(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_16
## %bb.8:
	leaq	L_.str.4(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_10:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_11:
	subl	(%rax), %ebx
	movq	%rbx, %r15
	jmp	LBB0_14
LBB0_12:
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_13:
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_14:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_tilcdc_fini
	movl	%r15d, %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	leaq	8(%r14), %rbx
	leaq	L_.str.5(%rip), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_of_property_read_u32
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movq	_TILCDC_DEFAULT_MAX_BANDWIDTH@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rsi, (%rbx)
	jmp	LBB0_19
LBB0_18:
	movq	(%rbx), %rsi
LBB0_19:
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_DBG
	leaq	16(%r14), %rbx
	leaq	L_.str.7(%rip), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_of_property_read_u32
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:
	movq	_TILCDC_DEFAULT_MAX_WIDTH@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rsi, (%rbx)
	jmp	LBB0_22
LBB0_21:
	movq	(%rbx), %rsi
LBB0_22:
	leaq	L_.str.8(%rip), %rdi
	xorl	%eax, %eax
	callq	_DBG
	addq	$24, %r14
	leaq	L_.str.9(%rip), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	_of_property_read_u32
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:
	movq	_TILCDC_DEFAULT_MAX_PIXELCLOCK@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rsi, (%r14)
	jmp	LBB0_25
LBB0_24:
	movq	(%r14), %rsi
LBB0_25:
	leaq	L_.str.10(%rip), %rdi
	xorl	%eax, %eax
	callq	_DBG
	movq	%r13, %rdi
	callq	_pm_runtime_enable
	movq	%r13, %rdi
	callq	_pm_runtime_get_sync
	movq	_LCDC_PID_REG@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_tilcdc_read
	movl	$1, %ebx
	cmpl	$1276117250, %eax               ## imm = 0x4C100102
	je	LBB0_30
## %bb.26:
	cmpl	$1327501312, %eax               ## imm = 0x4F201000
	je	LBB0_28
## %bb.27:
	cmpl	$1327499264, %eax               ## imm = 0x4F200800
	jne	LBB0_29
LBB0_28:
	movl	$2, %ebx
	jmp	LBB0_30
LBB0_29:
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_tilcdc_read
	leaq	L_.str.11(%rip), %rsi
	movq	%r13, %rdi
	movl	%eax, %edx
	callq	_dev_warn
LBB0_30:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, 32(%rax)
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_pm_runtime_put_sync
	cmpl	$1, 32(%rbx)
	jne	LBB0_32
## %bb.31:
	leaq	L_.str.12(%rip), %rdi
	xorl	%eax, %eax
	callq	_DBG
	movq	_tilcdc_rev1_formats@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rdi, 80(%rbx)
	callq	_ARRAY_SIZE
	movq	%rax, 72(%rbx)
	movl	$16, %r14d
	jmp	LBB0_38
LBB0_32:
	leaq	l_.str.13(%rip), %rax
	movq	%rax, -72(%rbp)
	leaq	L_.str.14(%rip), %rsi
	leaq	-72(%rbp), %rdx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_of_property_read_string
	movq	-72(%rbp), %rdi
	leaq	L_.str.15(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_35
## %bb.33:
	movq	-72(%rbp), %rdi
	leaq	L_.str.17(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_36
## %bb.34:
	movq	-72(%rbp), %rsi
	leaq	L_.str.19(%rip), %rdi
	xorl	%eax, %eax
	callq	_DBG
	movl	$16, %r14d
	movq	_tilcdc_legacy_formats@GOTPCREL(%rip), %rax
	jmp	LBB0_37
LBB0_35:
	leaq	L_.str.16(%rip), %rdi
	xorl	%eax, %eax
	callq	_DBG
	movl	$32, %r14d
	movq	_tilcdc_crossed_formats@GOTPCREL(%rip), %rax
	jmp	LBB0_37
LBB0_36:
	leaq	L_.str.18(%rip), %rdi
	xorl	%eax, %eax
	callq	_DBG
	movl	$16, %r14d
	movq	_tilcdc_straight_formats@GOTPCREL(%rip), %rax
LBB0_37:
	movq	(%rax), %rdi
	movq	%rdi, 80(%rbx)
	callq	_ARRAY_SIZE
	movq	%rax, 72(%rbx)
LBB0_38:
	movq	%r12, %rdi
	callq	_tilcdc_crtc_create
	testl	%eax, %eax
	js	LBB0_43
## %bb.39:
	movq	%r12, %rdi
	callq	_modeset_init
	cmpl	$0, (%rbx)
	je	LBB0_44
## %bb.40:
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_component_bind_all
	testl	%eax, %eax
	js	LBB0_50
## %bb.41:
	movq	%r12, %rdi
	callq	_tilcdc_add_component_encoder
	testl	%eax, %eax
	jns	LBB0_45
LBB0_50:
	movl	%eax, %r15d
	jmp	LBB0_14
LBB0_43:
	movl	%eax, %r15d
	leaq	L_.str.20(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	jmp	LBB0_14
LBB0_44:
	movq	%r12, %rdi
	callq	_tilcdc_attach_external_device
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_14
LBB0_45:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, 60(%rax)
	je	LBB0_51
LBB0_46:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_drm_vblank_init
	testl	%eax, %eax
	js	LBB0_54
## %bb.47:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_platform_get_irq
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_drm_irq_install
	testl	%eax, %eax
	js	LBB0_55
## %bb.48:
	movq	%r15, %rdi
	callq	_drm_mode_config_reset
	movq	%r15, %rdi
	callq	_drm_kms_helper_poll_init
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_drm_dev_register
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_14
## %bb.49:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	callq	_drm_fbdev_generic_setup
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$1, 56(%rax)
	jmp	LBB0_15
LBB0_51:
	cmpq	$0, 40(%rax)
	je	LBB0_53
## %bb.52:
	cmpq	$0, 48(%rax)
	jne	LBB0_46
LBB0_53:
	leaq	L_.str.21(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_54:
	movl	%eax, %ebx
	leaq	L_.str.22(%rip), %rsi
	jmp	LBB0_56
LBB0_55:
	movl	%eax, %ebx
	leaq	L_.str.23(%rip), %rsi
LBB0_56:
	movq	%r13, %rdi
	callq	_dev_err
	movq	%rbx, %r15
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tilcdc"

	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
L_.str.1:                               ## @.str.1
	.asciz	"failed to get memory resource\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"failed to ioremap\n"

L_.str.3:                               ## @.str.3
	.asciz	"fck"

L_.str.4:                               ## @.str.4
	.asciz	"failed to get functional clock\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.5:                               ## @.str.5
	.asciz	"max-bandwidth"

	.comm	_TILCDC_DEFAULT_MAX_BANDWIDTH,8,3 ## @TILCDC_DEFAULT_MAX_BANDWIDTH
L_.str.6:                               ## @.str.6
	.asciz	"Maximum Bandwidth Value %d"

L_.str.7:                               ## @.str.7
	.asciz	"max-width"

	.comm	_TILCDC_DEFAULT_MAX_WIDTH,8,3   ## @TILCDC_DEFAULT_MAX_WIDTH
L_.str.8:                               ## @.str.8
	.asciz	"Maximum Horizontal Pixel Width Value %dpixels"

L_.str.9:                               ## @.str.9
	.asciz	"max-pixelclock"

	.comm	_TILCDC_DEFAULT_MAX_PIXELCLOCK,8,3 ## @TILCDC_DEFAULT_MAX_PIXELCLOCK
L_.str.10:                              ## @.str.10
	.asciz	"Maximum Pixel Clock Value %dKHz"

	.comm	_LCDC_PID_REG,4,2               ## @LCDC_PID_REG
L_.str.11:                              ## @.str.11
	.asciz	"Unknown PID Reg value 0x%08x, defaulting to LCD revision 1\n"

L_.str.12:                              ## @.str.12
	.asciz	"Revision 1 LCDC supports only RGB565 format"

	.comm	_tilcdc_rev1_formats,8,3        ## @tilcdc_rev1_formats
	.section	__TEXT,__const
l_.str.13:                              ## @.str.13
	.space	2

	.section	__TEXT,__cstring,cstring_literals
L_.str.14:                              ## @.str.14
	.asciz	"blue-and-red-wiring"

L_.str.15:                              ## @.str.15
	.asciz	"crossed"

L_.str.16:                              ## @.str.16
	.asciz	"Configured for crossed blue and red wires"

	.comm	_tilcdc_crossed_formats,8,3     ## @tilcdc_crossed_formats
L_.str.17:                              ## @.str.17
	.asciz	"straight"

L_.str.18:                              ## @.str.18
	.asciz	"Configured for straight blue and red wires"

	.comm	_tilcdc_straight_formats,8,3    ## @tilcdc_straight_formats
L_.str.19:                              ## @.str.19
	.asciz	"Blue and red wiring '%s' unknown, use legacy mode"

	.comm	_tilcdc_legacy_formats,8,3      ## @tilcdc_legacy_formats
L_.str.20:                              ## @.str.20
	.asciz	"failed to create crtc\n"

L_.str.21:                              ## @.str.21
	.asciz	"no encoders/connectors found\n"

	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
L_.str.22:                              ## @.str.22
	.asciz	"failed to initialize vblank\n"

L_.str.23:                              ## @.str.23
	.asciz	"failed to install IRQ handler\n"

	.comm	_CPUFREQ_TRANSITION_NOTIFIER,4,2 ## @CPUFREQ_TRANSITION_NOTIFIER
	.comm	_cpufreq_transition,8,3         ## @cpufreq_transition
	.no_dead_strip	_tilcdc_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tilcdc_init
_tilcdc_init:                           ; @tilcdc_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_to_platform_device
	mov	x22, x0
	ldr	x23, [x20]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #104
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	mov	x0, x19
	mov	x1, x20
	bl	_drm_dev_alloc
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x19
	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
	add	sp, sp, #80
	b	_PTR_ERR
LBB0_3:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_14
LBB0_4:
	str	x21, [x19]
	mov	x0, x22
	mov	x1, x19
	bl	_platform_set_drvdata
	mov	x0, x19
	bl	_drm_mode_config_init
	mov	x0, x20
	mov	x1, #0
	bl	_tilcdc_get_external_components
	cmp	x0, #0
	cset	w8, gt
	str	w8, [x21]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	w1, #0
	bl	_alloc_ordered_workqueue
	str	w0, [x21, #100]
	cbz	w0, LBB0_11
; %bb.5:
Lloh8:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x22
	mov	w2, #0
	bl	_platform_get_resource
	cbz	x0, LBB0_9
; %bb.6:
	ldr	w24, [x0]
	bl	_resource_size
	mov	x1, x0
	mov	x0, x24
	bl	_ioremap_nocache
	str	w0, [x21, #96]
	cbz	w0, LBB0_10
; %bb.7:
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_clk_get
	str	x0, [x21, #88]
	bl	_IS_ERR
	cbz	x0, LBB0_15
; %bb.8:
Lloh13:
	adrp	x1, l_.str.4@PAGE
Lloh14:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh15:
	adrp	x8, _ENODEV@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_12
LBB0_9:
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh19:
	adrp	x8, _EINVAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_err
LBB0_11:
Lloh23:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_13:
	mov	x0, x19
	bl	_tilcdc_fini
LBB0_14:
	mov	x0, x24
	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
	add	sp, sp, #80
	ret
LBB0_15:
	add	x24, x21, #8
Lloh25:
	adrp	x1, l_.str.5@PAGE
Lloh26:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x23
	mov	x2, x24
	bl	_of_property_read_u32
	cbz	x0, LBB0_17
; %bb.16:
Lloh27:
	adrp	x8, _TILCDC_DEFAULT_MAX_BANDWIDTH@GOTPAGE
Lloh28:
	ldr	x8, [x8, _TILCDC_DEFAULT_MAX_BANDWIDTH@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	str	x8, [x24]
	b	LBB0_18
LBB0_17:
	ldr	x8, [x24]
LBB0_18:
	str	x8, [sp]
Lloh30:
	adrp	x0, l_.str.6@PAGE
Lloh31:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_DBG
	add	x24, x21, #16
Lloh32:
	adrp	x1, l_.str.7@PAGE
Lloh33:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x23
	mov	x2, x24
	bl	_of_property_read_u32
	cbz	x0, LBB0_20
; %bb.19:
Lloh34:
	adrp	x8, _TILCDC_DEFAULT_MAX_WIDTH@GOTPAGE
Lloh35:
	ldr	x8, [x8, _TILCDC_DEFAULT_MAX_WIDTH@GOTPAGEOFF]
Lloh36:
	ldr	x8, [x8]
	str	x8, [x24]
	b	LBB0_21
LBB0_20:
	ldr	x8, [x24]
LBB0_21:
	str	x8, [sp]
Lloh37:
	adrp	x0, l_.str.8@PAGE
Lloh38:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_DBG
	add	x24, x21, #24
Lloh39:
	adrp	x1, l_.str.9@PAGE
Lloh40:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x23
	mov	x2, x24
	bl	_of_property_read_u32
	cbz	x0, LBB0_23
; %bb.22:
Lloh41:
	adrp	x8, _TILCDC_DEFAULT_MAX_PIXELCLOCK@GOTPAGE
Lloh42:
	ldr	x8, [x8, _TILCDC_DEFAULT_MAX_PIXELCLOCK@GOTPAGEOFF]
Lloh43:
	ldr	x8, [x8]
	str	x8, [x24]
	b	LBB0_24
LBB0_23:
	ldr	x8, [x24]
LBB0_24:
	str	x8, [sp]
Lloh44:
	adrp	x0, l_.str.10@PAGE
Lloh45:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_DBG
	mov	x0, x20
	bl	_pm_runtime_enable
	mov	x0, x20
	bl	_pm_runtime_get_sync
Lloh46:
	adrp	x24, _LCDC_PID_REG@GOTPAGE
Lloh47:
	ldr	x24, [x24, _LCDC_PID_REG@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_tilcdc_read
	mov	w8, #258
	movk	w8, #19472, lsl #16
	cmp	w0, w8
	b.eq	LBB0_29
; %bb.25:
	mov	w8, #4096
	movk	w8, #20256, lsl #16
	cmp	w0, w8
	b.eq	LBB0_27
; %bb.26:
	mov	w8, #2048
	movk	w8, #20256, lsl #16
	cmp	w0, w8
	b.ne	LBB0_28
LBB0_27:
	mov	w8, #2
	b	LBB0_30
LBB0_28:
	ldr	w1, [x24]
	mov	x0, x19
	bl	_tilcdc_read
	mov	x2, x0
Lloh48:
	adrp	x1, l_.str.11@PAGE
Lloh49:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x20
	bl	_dev_warn
LBB0_29:
	mov	w8, #1
LBB0_30:
	str	w8, [x21, #32]
	mov	x0, x20
	bl	_pm_runtime_put_sync
	ldr	w8, [x21, #32]
	cmp	w8, #1
	b.ne	LBB0_32
; %bb.31:
Lloh50:
	adrp	x0, l_.str.12@PAGE
Lloh51:
	add	x0, x0, l_.str.12@PAGEOFF
	bl	_DBG
Lloh52:
	adrp	x8, _tilcdc_rev1_formats@GOTPAGE
Lloh53:
	ldr	x8, [x8, _tilcdc_rev1_formats@GOTPAGEOFF]
Lloh54:
	ldr	x0, [x8]
	str	x0, [x21, #80]
	bl	_ARRAY_SIZE
	str	x0, [x21, #72]
	mov	w23, #16
	b	LBB0_38
LBB0_32:
Lloh55:
	adrp	x8, l_.str.13@PAGE
Lloh56:
	add	x8, x8, l_.str.13@PAGEOFF
	str	x8, [sp, #8]
Lloh57:
	adrp	x1, l_.str.14@PAGE
Lloh58:
	add	x1, x1, l_.str.14@PAGEOFF
	add	x2, sp, #8
	mov	x0, x23
	bl	_of_property_read_string
	ldr	x0, [sp, #8]
Lloh59:
	adrp	x1, l_.str.15@PAGE
Lloh60:
	add	x1, x1, l_.str.15@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_35
; %bb.33:
	ldr	x0, [sp, #8]
Lloh61:
	adrp	x1, l_.str.17@PAGE
Lloh62:
	add	x1, x1, l_.str.17@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_36
; %bb.34:
	ldr	x8, [sp, #8]
	str	x8, [sp]
Lloh63:
	adrp	x0, l_.str.19@PAGE
Lloh64:
	add	x0, x0, l_.str.19@PAGEOFF
	bl	_DBG
	mov	w23, #16
Lloh65:
	adrp	x8, _tilcdc_legacy_formats@GOTPAGE
Lloh66:
	ldr	x8, [x8, _tilcdc_legacy_formats@GOTPAGEOFF]
	b	LBB0_37
LBB0_35:
Lloh67:
	adrp	x0, l_.str.16@PAGE
Lloh68:
	add	x0, x0, l_.str.16@PAGEOFF
	bl	_DBG
	mov	w23, #32
Lloh69:
	adrp	x8, _tilcdc_crossed_formats@GOTPAGE
Lloh70:
	ldr	x8, [x8, _tilcdc_crossed_formats@GOTPAGEOFF]
	b	LBB0_37
LBB0_36:
Lloh71:
	adrp	x0, l_.str.18@PAGE
Lloh72:
	add	x0, x0, l_.str.18@PAGEOFF
	bl	_DBG
	mov	w23, #16
Lloh73:
	adrp	x8, _tilcdc_straight_formats@GOTPAGE
Lloh74:
	ldr	x8, [x8, _tilcdc_straight_formats@GOTPAGEOFF]
LBB0_37:
	ldr	x0, [x8]
	str	x0, [x21, #80]
	bl	_ARRAY_SIZE
	str	x0, [x21, #72]
LBB0_38:
	mov	x0, x19
	bl	_tilcdc_crtc_create
	tbnz	w0, #31, LBB0_43
; %bb.39:
	mov	x0, x19
	bl	_modeset_init
	ldr	w8, [x21]
	cbz	w8, LBB0_45
; %bb.40:
	mov	x0, x20
	mov	x1, x19
	bl	_component_bind_all
	tbnz	w0, #31, LBB0_42
; %bb.41:
	mov	x0, x19
	bl	_tilcdc_add_component_encoder
	tbz	w0, #31, LBB0_46
LBB0_42:
	mov	x24, x0
	b	LBB0_13
LBB0_43:
	mov	x24, x0
Lloh75:
	adrp	x1, l_.str.20@PAGE
Lloh76:
	add	x1, x1, l_.str.20@PAGEOFF
LBB0_44:
	mov	x0, x20
	bl	_dev_err
	b	LBB0_13
LBB0_45:
	mov	x0, x19
	bl	_tilcdc_attach_external_device
	mov	x24, x0
	cbnz	w0, LBB0_13
LBB0_46:
	ldr	w8, [x21, #60]
	cbz	w8, LBB0_51
LBB0_47:
	mov	x0, x19
	mov	w1, #1
	bl	_drm_vblank_init
	tbnz	w0, #31, LBB0_54
; %bb.48:
	mov	x0, x22
	mov	w1, #0
	bl	_platform_get_irq
	mov	x1, x0
	mov	x0, x19
	bl	_drm_irq_install
	tbnz	w0, #31, LBB0_55
; %bb.49:
	mov	x0, x19
	bl	_drm_mode_config_reset
	mov	x0, x19
	bl	_drm_kms_helper_poll_init
	mov	x0, x19
	mov	w1, #0
	bl	_drm_dev_register
	mov	x24, x0
	cbnz	w0, LBB0_13
; %bb.50:
	mov	x0, x19
	mov	x1, x23
	bl	_drm_fbdev_generic_setup
	mov	w8, #1
	str	w8, [x21, #56]
	b	LBB0_14
LBB0_51:
	ldr	x8, [x21, #40]
	cbz	x8, LBB0_53
; %bb.52:
	ldr	x8, [x21, #48]
	cbnz	x8, LBB0_47
LBB0_53:
Lloh77:
	adrp	x1, l_.str.21@PAGE
Lloh78:
	add	x1, x1, l_.str.21@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh79:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh80:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
	b	LBB0_12
LBB0_54:
	mov	x24, x0
Lloh81:
	adrp	x1, l_.str.22@PAGE
Lloh82:
	add	x1, x1, l_.str.22@PAGEOFF
	b	LBB0_44
LBB0_55:
	mov	x24, x0
Lloh83:
	adrp	x1, l_.str.23@PAGE
Lloh84:
	add	x1, x1, l_.str.23@PAGEOFF
	b	LBB0_44
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpLdrGot	Lloh65, Lloh66
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpLdrGot	Lloh69, Lloh70
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpLdrGot	Lloh73, Lloh74
	.loh AdrpAdd	Lloh71, Lloh72
	.loh AdrpAdd	Lloh75, Lloh76
	.loh AdrpLdrGot	Lloh79, Lloh80
	.loh AdrpAdd	Lloh77, Lloh78
	.loh AdrpAdd	Lloh81, Lloh82
	.loh AdrpAdd	Lloh83, Lloh84
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tilcdc"

	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
l_.str.1:                               ; @.str.1
	.asciz	"failed to get memory resource\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"failed to ioremap\n"

l_.str.3:                               ; @.str.3
	.asciz	"fck"

l_.str.4:                               ; @.str.4
	.asciz	"failed to get functional clock\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.5:                               ; @.str.5
	.asciz	"max-bandwidth"

	.comm	_TILCDC_DEFAULT_MAX_BANDWIDTH,8,3 ; @TILCDC_DEFAULT_MAX_BANDWIDTH
l_.str.6:                               ; @.str.6
	.asciz	"Maximum Bandwidth Value %d"

l_.str.7:                               ; @.str.7
	.asciz	"max-width"

	.comm	_TILCDC_DEFAULT_MAX_WIDTH,8,3   ; @TILCDC_DEFAULT_MAX_WIDTH
l_.str.8:                               ; @.str.8
	.asciz	"Maximum Horizontal Pixel Width Value %dpixels"

l_.str.9:                               ; @.str.9
	.asciz	"max-pixelclock"

	.comm	_TILCDC_DEFAULT_MAX_PIXELCLOCK,8,3 ; @TILCDC_DEFAULT_MAX_PIXELCLOCK
l_.str.10:                              ; @.str.10
	.asciz	"Maximum Pixel Clock Value %dKHz"

	.comm	_LCDC_PID_REG,4,2               ; @LCDC_PID_REG
l_.str.11:                              ; @.str.11
	.asciz	"Unknown PID Reg value 0x%08x, defaulting to LCD revision 1\n"

l_.str.12:                              ; @.str.12
	.asciz	"Revision 1 LCDC supports only RGB565 format"

	.comm	_tilcdc_rev1_formats,8,3        ; @tilcdc_rev1_formats
	.section	__TEXT,__const
l_.str.13:                              ; @.str.13
	.space	2

	.section	__TEXT,__cstring,cstring_literals
l_.str.14:                              ; @.str.14
	.asciz	"blue-and-red-wiring"

l_.str.15:                              ; @.str.15
	.asciz	"crossed"

l_.str.16:                              ; @.str.16
	.asciz	"Configured for crossed blue and red wires"

	.comm	_tilcdc_crossed_formats,8,3     ; @tilcdc_crossed_formats
l_.str.17:                              ; @.str.17
	.asciz	"straight"

l_.str.18:                              ; @.str.18
	.asciz	"Configured for straight blue and red wires"

	.comm	_tilcdc_straight_formats,8,3    ; @tilcdc_straight_formats
l_.str.19:                              ; @.str.19
	.asciz	"Blue and red wiring '%s' unknown, use legacy mode"

	.comm	_tilcdc_legacy_formats,8,3      ; @tilcdc_legacy_formats
l_.str.20:                              ; @.str.20
	.asciz	"failed to create crtc\n"

l_.str.21:                              ; @.str.21
	.asciz	"no encoders/connectors found\n"

	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
l_.str.22:                              ; @.str.22
	.asciz	"failed to initialize vblank\n"

l_.str.23:                              ; @.str.23
	.asciz	"failed to install IRQ handler\n"

	.comm	_CPUFREQ_TRANSITION_NOTIFIER,4,2 ; @CPUFREQ_TRANSITION_NOTIFIER
	.comm	_cpufreq_transition,8,3         ; @cpufreq_transition
	.no_dead_strip	_tilcdc_init
.subsections_via_symbols
