	.file	"extr_panel-samsung-ld9040.c_ld9040_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"vdd3"
.LC1:
	.string	"vci"
.LC2:
	.string	"reset"
.LC3:
	.string	"cannot get reset-gpios %ld\n"
.LC4:
	.string	"spi setup failed.\n"
	.text
	.p2align 4
	.type	ld9040_probe, @function
ld9040_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	esi, 48
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	lea	r13, 4[rdi]
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	rdi, r13
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	call	devm_kzalloc@PLT
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	test	rax, rax
	je	.L1
	mov	rbp, rax
	mov	rsi, rax
	mov	rdi, r14
	call	spi_set_drvdata@PLT
	mov	QWORD PTR 40[rbp], r13
	mov	rdi, QWORD PTR ld9040_gammas[rip]
	call	ARRAY_SIZE@PLT
	mov	rdi, rbp
	sub	eax, 1
	cdqe
	mov	QWORD PTR 32[rbp], rax
	call	ld9040_parse_dt@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L1
	mov	r12, QWORD PTR 24[rbp]
	lea	rax, .LC0[rip]
	mov	QWORD PTR [r12], rax
	lea	rax, .LC1[rip]
	mov	rdi, r12
	mov	QWORD PTR 8[r12], rax
	call	ARRAY_SIZE@PLT
	mov	rdx, r12
	mov	rdi, r13
	mov	esi, eax
	call	devm_regulator_bulk_get@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L1
	mov	edx, DWORD PTR GPIOD_OUT_HIGH[rip]
	mov	rdi, r13
	lea	rsi, .LC2[rip]
	call	devm_gpiod_get@PLT
	mov	DWORD PTR 16[rbp], eax
	mov	edi, eax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L8
	mov	DWORD PTR [r14], 9
	mov	rdi, r14
	call	spi_setup@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L9
	mov	rdi, rbp
	call	drm_panel_init@PLT
	lea	rax, ld9040_drm_funcs[rip]
	mov	QWORD PTR 8[rbp], r13
	mov	rdi, rbp
	mov	QWORD PTR 0[rbp], rax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
	jmp	drm_panel_add@PLT
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	lea	rsi, .LC4[rip]
	mov	rdi, r13
	xor	eax, eax
	call	dev_err@PLT
.L1:
	add	rsp, 8
	.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
.L8:
	.cfi_restore_state
	mov	edi, DWORD PTR 16[rbp]
	call	PTR_ERR@PLT
	mov	rdi, r13
	lea	rsi, .LC3[rip]
	mov	edx, eax
	xor	eax, eax
	call	dev_err@PLT
	mov	edi, DWORD PTR 16[rbp]
	add	rsp, 8
	.cfi_def_cfa_offset 40
	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
	jmp	PTR_ERR@PLT
	.cfi_endproc
.LFE0:
	.size	ld9040_probe, .-ld9040_probe
	.comm	ld9040_gammas,8,8
	.comm	ld9040_drm_funcs,4,4
	.comm	GPIOD_OUT_HIGH,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,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-samsung-ld9040.c_ld9040_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"vdd3\000"
	.align	2
.LC1:
	.ascii	"vci\000"
	.align	2
.LC2:
	.ascii	"reset\000"
	.align	2
.LC3:
	.ascii	"cannot get reset-gpios %ld\012\000"
	.align	2
.LC4:
	.ascii	"spi setup failed.\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ld9040_probe, %function
ld9040_probe:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L11
	push	{r4, r5, r6, r7, r8, lr}
	add	r7, r0, #4
	mov	r6, r0
	mov	r1, #24
	mov	r0, r7
	ldr	r2, [r3]
	bl	devm_kzalloc
	subs	r4, r0, #0
	beq	.L8
	mov	r1, r4
	mov	r0, r6
	bl	spi_set_drvdata
	ldr	r3, .L11+4
	str	r7, [r4, #20]
	ldr	r0, [r3]
	bl	ARRAY_SIZE
	sub	r0, r0, #1
	str	r0, [r4, #16]
	mov	r0, r4
	bl	ld9040_parse_dt
	subs	r5, r0, #0
	blt	.L1
	ldr	r2, .L11+8
	ldr	r3, .L11+12
	ldr	r0, [r4, #12]
	stm	r0, {r2, r3}
	bl	ARRAY_SIZE
	ldr	r2, [r4, #12]
	mov	r1, r0
	mov	r0, r7
	bl	devm_regulator_bulk_get
	subs	r5, r0, #0
	blt	.L1
	ldr	r3, .L11+16
	ldr	r1, .L11+20
	ldr	r2, [r3]
	mov	r0, r7
	bl	devm_gpiod_get
	str	r0, [r4, #8]
	bl	IS_ERR
	cmp	r0, #0
	bne	.L9
	mov	r3, #9
	mov	r0, r6
	str	r3, [r6]
	bl	spi_setup
	subs	r5, r0, #0
	blt	.L10
	mov	r0, r4
	bl	drm_panel_init
	ldr	r3, .L11+24
	mov	r0, r4
	stm	r4, {r3, r7}
	pop	{r4, r5, r6, r7, r8, lr}
	b	drm_panel_add
.L8:
	ldr	r3, .L11+28
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	ldr	r0, [r4, #8]
	bl	PTR_ERR
	ldr	r1, .L11+32
	mov	r2, r0
	mov	r0, r7
	bl	dev_err
	ldr	r0, [r4, #8]
	pop	{r4, r5, r6, r7, r8, lr}
	b	PTR_ERR
.L10:
	mov	r0, r7
	ldr	r1, .L11+36
	bl	dev_err
	b	.L1
.L12:
	.align	2
.L11:
	.word	GFP_KERNEL
	.word	ld9040_gammas
	.word	.LC0
	.word	.LC1
	.word	GPIOD_OUT_HIGH
	.word	.LC2
	.word	ld9040_drm_funcs
	.word	ENOMEM
	.word	.LC3
	.word	.LC4
	.size	ld9040_probe, .-ld9040_probe
	.comm	ld9040_gammas,4,4
	.comm	ld9040_drm_funcs,4,4
	.comm	GPIOD_OUT_HIGH,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
