	.file	"extr_panel-raydium-rm67191.c_rad_panel_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"video-mode"
.LC1:
	.string	"invalid video mode %d\n"
.LC2:
	.string	"dsi-lanes"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC3:
	.string	"Failed to get dsi-lanes property (%d)\n"
	.section	.rodata.str1.1
.LC4:
	.string	"reset"
	.section	.rodata.str1.8
	.align 8
.LC5:
	.string	"Failed to register backlight (%d)\n"
	.text
	.p2align 4
	.type	rad_panel_probe, @function
rad_panel_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	esi, 32
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	lea	r13, 16[rdi]
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	sub	rsp, 40
	.cfi_def_cfa_offset 80
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	r12, QWORD PTR 16[rdi]
	mov	rdi, r13
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	devm_kzalloc@PLT
	test	rax, rax
	je	.L19
	mov	rsi, rax
	mov	rdi, rbp
	mov	r14, rax
	call	mipi_dsi_set_drvdata@PLT
	mov	eax, DWORD PTR MIPI_DSI_FMT_RGB888[rip]
	mov	QWORD PTR 24[r14], rbp
	lea	rdx, 8[rsp]
	lea	rsi, .LC0[rip]
	mov	rdi, r12
	mov	DWORD PTR 8[rbp], eax
	mov	eax, DWORD PTR MIPI_DSI_MODE_VIDEO_HSE[rip]
	or	eax, DWORD PTR MIPI_DSI_MODE_VIDEO[rip]
	or	eax, DWORD PTR MIPI_DSI_CLOCK_NON_CONTINUOUS[rip]
	mov	DWORD PTR 0[rbp], eax
	call	of_property_read_u32@PLT
	test	eax, eax
	jne	.L4
	mov	edx, DWORD PTR 8[rsp]
	cmp	edx, 1
	je	.L4
	cmp	edx, 2
	je	.L5
	test	edx, edx
	je	.L20
	lea	rsi, .LC1[rip]
	mov	rdi, r13
	call	dev_warn@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdi, r12
	lea	rdx, 4[rbp]
	lea	rsi, .LC2[rip]
	call	of_property_read_u32@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L21
	mov	edx, DWORD PTR GPIOD_OUT_LOW[rip]
	mov	rdi, r13
	lea	rsi, .LC4[rip]
	call	devm_gpiod_get_optional@PLT
	mov	DWORD PTR 20[r14], eax
	mov	edi, eax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L22
	lea	r12, 12[rsp]
	xor	esi, esi
	mov	edx, 12
	mov	rdi, r12
	call	memset@PLT
	mov	eax, DWORD PTR BACKLIGHT_RAW[rip]
	mov	rdi, r13
	mov	DWORD PTR 20[rsp], eax
	movabs	rax, 1095216660735
	mov	QWORD PTR 12[rsp], rax
	call	dev_name@PLT
	mov	rdi, r13
	mov	r9, r12
	mov	rcx, rbp
	mov	esi, eax
	lea	r8, rad_bl_ops[rip]
	mov	rdx, r13
	call	devm_backlight_device_register@PLT
	mov	DWORD PTR 16[r14], eax
	mov	edi, eax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L23
	mov	rdi, r14
	call	rad_init_regulators@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	rdi, r14
	call	drm_panel_init@PLT
	mov	QWORD PTR [r14], r13
	mov	rsi, r14
	mov	rdi, r13
	lea	rax, rad_panel_funcs[rip]
	mov	QWORD PTR 8[r14], rax
	call	dev_set_drvdata@PLT
	mov	rdi, r14
	call	drm_panel_add@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	rdi, rbp
	call	mipi_dsi_attach@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L1
	mov	rdi, r14
	call	drm_panel_remove@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L21:
	mov	edx, eax
	lea	rsi, .LC3[rip]
	mov	rdi, r13
	call	dev_err@PLT
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L24
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L23:
	mov	edi, DWORD PTR 16[r14]
	call	PTR_ERR@PLT
	lea	rsi, .LC5[rip]
	mov	rdi, r13
	mov	edx, eax
	mov	r12d, eax
	call	dev_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L22:
	mov	edi, DWORD PTR 20[r14]
	call	PTR_ERR@PLT
	mov	r12d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L20:
	mov	eax, DWORD PTR MIPI_DSI_MODE_VIDEO_BURST[rip]
	or	DWORD PTR 0[rbp], eax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	mov	eax, DWORD PTR MIPI_DSI_MODE_VIDEO_SYNC_PULSE[rip]
	or	DWORD PTR 0[rbp], eax
	jmp	.L4
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	rad_panel_probe, .-rad_panel_probe
	.comm	rad_panel_funcs,4,4
	.comm	rad_bl_ops,4,4
	.comm	MIPI_DSI_MODE_VIDEO_SYNC_PULSE,4,4
	.comm	MIPI_DSI_MODE_VIDEO_HSE,4,4
	.comm	MIPI_DSI_MODE_VIDEO_BURST,4,4
	.comm	MIPI_DSI_MODE_VIDEO,4,4
	.comm	MIPI_DSI_FMT_RGB888,4,4
	.comm	MIPI_DSI_CLOCK_NON_CONTINUOUS,4,4
	.comm	GPIOD_OUT_LOW,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	BACKLIGHT_RAW,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_panel-raydium-rm67191.c_rad_panel_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"video-mode\000"
	.align	2
.LC1:
	.ascii	"invalid video mode %d\012\000"
	.align	2
.LC2:
	.ascii	"dsi-lanes\000"
	.align	2
.LC3:
	.ascii	"Failed to get dsi-lanes property (%d)\012\000"
	.align	2
.LC4:
	.ascii	"reset\000"
	.align	2
.LC5:
	.ascii	"Failed to register backlight (%d)\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rad_panel_probe, %function
rad_panel_probe:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r4, r0
	ldr	r3, .L25
	add	r7, r0, #12
	ldr	r2, [r3]
	ldr	r3, .L25+4
	sub	sp, sp, #36
	mov	r0, r7
	mov	r1, #20
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	ldr	r5, [r4, #12]
	bl	devm_kzalloc
	subs	r6, r0, #0
	beq	.L19
	mov	r1, r6
	mov	r0, r4
	bl	mipi_dsi_set_drvdata
	ldr	r1, .L25+8
	ldr	r3, .L25+12
	ldr	r2, .L25+16
	ldr	r0, [r1]
	ldr	r3, [r3]
	ldr	r1, .L25+20
	ldr	r2, [r2]
	ldr	r1, [r1]
	orr	r3, r3, r0
	orr	r3, r3, r2
	str	r4, [r6, #16]
	mov	r0, r5
	str	r1, [r4, #8]
	add	r2, sp, #12
	ldr	r1, .L25+24
	str	r3, [r4]
	bl	of_property_read_u32
	cmp	r0, #0
	bne	.L4
	ldr	r2, [sp, #12]
	cmp	r2, #1
	beq	.L4
	cmp	r2, #2
	beq	.L5
	cmp	r2, #0
	beq	.L20
	mov	r0, r7
	ldr	r1, .L25+28
	bl	dev_warn
.L4:
	mov	r0, r5
	ldr	r1, .L25+32
	add	r2, r4, #4
	bl	of_property_read_u32
	subs	r5, r0, #0
	bne	.L21
	ldr	r3, .L25+36
	ldr	r1, .L25+40
	ldr	r2, [r3]
	mov	r0, r7
	bl	devm_gpiod_get_optional
	str	r0, [r6, #12]
	bl	IS_ERR
	cmp	r0, #0
	bne	.L22
	mov	r3, #255
	ldr	r2, .L25+44
	mov	r0, r7
	ldr	r2, [r2]
	str	r3, [sp, #16]
	str	r2, [sp, #24]
	str	r3, [sp, #20]
	bl	dev_name
	ldr	r2, .L25+48
	add	r3, sp, #16
	mov	r1, r0
	stm	sp, {r2, r3}
	mov	r0, r7
	mov	r3, r4
	mov	r2, r7
	bl	devm_backlight_device_register
	str	r0, [r6, #8]
	bl	IS_ERR
	cmp	r0, #0
	bne	.L23
	mov	r0, r6
	bl	rad_init_regulators
	subs	r5, r0, #0
	bne	.L1
	mov	r0, r6
	bl	drm_panel_init
	ldr	r3, .L25+52
	mov	r1, r6
	str	r3, [r6, #4]
	mov	r0, r7
	str	r7, [r6]
	bl	dev_set_drvdata
	mov	r0, r6
	bl	drm_panel_add
	subs	r5, r0, #0
	bne	.L1
	mov	r0, r4
	bl	mipi_dsi_attach
	subs	r5, r0, #0
	beq	.L1
	mov	r0, r6
	bl	drm_panel_remove
	b	.L1
.L21:
	mov	r0, r7
	mov	r2, r5
	ldr	r1, .L25+56
	bl	dev_err
.L1:
	ldr	r3, .L25+4
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L24
	mov	r0, r5
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L19:
	ldr	r3, .L25+60
	ldr	r0, [r3]
	rsb	r5, r0, #0
	b	.L1
.L23:
	ldr	r0, [r6, #8]
	bl	PTR_ERR
	mov	r5, r0
	ldr	r1, .L25+64
	mov	r0, r7
	mov	r2, r5
	bl	dev_err
	b	.L1
.L22:
	ldr	r0, [r6, #12]
	bl	PTR_ERR
	mov	r5, r0
	b	.L1
.L20:
	ldr	r2, .L25+68
	ldr	r3, [r4]
	ldr	r2, [r2]
	orr	r3, r3, r2
	str	r3, [r4]
	b	.L4
.L5:
	ldr	r2, .L25+72
	ldr	r3, [r4]
	ldr	r2, [r2]
	orr	r3, r3, r2
	str	r3, [r4]
	b	.L4
.L24:
	bl	__stack_chk_fail
.L26:
	.align	2
.L25:
	.word	GFP_KERNEL
	.word	.LC6
	.word	MIPI_DSI_MODE_VIDEO
	.word	MIPI_DSI_MODE_VIDEO_HSE
	.word	MIPI_DSI_CLOCK_NON_CONTINUOUS
	.word	MIPI_DSI_FMT_RGB888
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	GPIOD_OUT_LOW
	.word	.LC4
	.word	BACKLIGHT_RAW
	.word	rad_bl_ops
	.word	rad_panel_funcs
	.word	.LC3
	.word	ENOMEM
	.word	.LC5
	.word	MIPI_DSI_MODE_VIDEO_BURST
	.word	MIPI_DSI_MODE_VIDEO_SYNC_PULSE
	.size	rad_panel_probe, .-rad_panel_probe
	.comm	rad_panel_funcs,4,4
	.comm	rad_bl_ops,4,4
	.comm	MIPI_DSI_MODE_VIDEO_SYNC_PULSE,4,4
	.comm	MIPI_DSI_MODE_VIDEO_HSE,4,4
	.comm	MIPI_DSI_MODE_VIDEO_BURST,4,4
	.comm	MIPI_DSI_MODE_VIDEO,4,4
	.comm	MIPI_DSI_FMT_RGB888,4,4
	.comm	MIPI_DSI_CLOCK_NON_CONTINUOUS,4,4
	.comm	GPIOD_OUT_LOW,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	BACKLIGHT_RAW,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
