	.file	"extr_ams-delta.c_ams_delta_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"rdy"
.LC1:
	.string	"RDY GPIO request failed (%d)\n"
.LC2:
	.string	"nwp"
.LC3:
	.string	"NWP GPIO request failed (%d)\n"
.LC4:
	.string	"nce"
.LC5:
	.string	"NCE GPIO request failed (%d)\n"
.LC6:
	.string	"nre"
.LC7:
	.string	"NRE GPIO request failed (%d)\n"
.LC8:
	.string	"nwe"
.LC9:
	.string	"NWE GPIO request failed (%d)\n"
.LC10:
	.string	"ale"
.LC11:
	.string	"ALE GPIO request failed (%d)\n"
.LC12:
	.string	"cle"
.LC13:
	.string	"CLE GPIO request failed (%d)\n"
.LC14:
	.string	"data"
.LC15:
	.string	"data GPIO request failed: %d\n"
	.text
	.p2align 4
	.type	ams_delta_init, @function
ams_delta_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	esi, 96
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	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
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	devm_kzalloc@PLT
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	test	rax, rax
	je	.L1
	lea	r13, 80[rax]
	mov	rbx, rax
	mov	rdi, r13
	call	nand_to_mtd@PLT
	mov	rsi, rbx
	mov	rdi, r13
	mov	QWORD PTR [rax], rbp
	mov	r14, rax
	call	nand_set_controller_data@PLT
	mov	edx, DWORD PTR GPIOD_IN[rip]
	mov	rdi, rbp
	lea	rsi, .LC0[rip]
	call	devm_gpiod_get_optional@PLT
	mov	QWORD PTR 72[rbx], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L17
	mov	eax, DWORD PTR NAND_ECC_SOFT[rip]
	mov	rsi, rbx
	mov	rdi, rbp
	mov	DWORD PTR 92[rbx], eax
	mov	eax, DWORD PTR NAND_ECC_HAMMING[rip]
	mov	DWORD PTR 88[rbx], eax
	call	platform_set_drvdata@PLT
	mov	edx, DWORD PTR GPIOD_OUT_HIGH[rip]
	mov	rdi, rbp
	lea	rsi, .LC2[rip]
	call	devm_gpiod_get@PLT
	mov	QWORD PTR 64[rbx], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L18
	mov	edx, DWORD PTR GPIOD_OUT_HIGH[rip]
	mov	rdi, rbp
	lea	rsi, .LC4[rip]
	call	devm_gpiod_get@PLT
	mov	QWORD PTR 56[rbx], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L19
	mov	edx, DWORD PTR GPIOD_OUT_HIGH[rip]
	mov	rdi, rbp
	lea	rsi, .LC6[rip]
	call	devm_gpiod_get@PLT
	mov	QWORD PTR 48[rbx], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L20
	mov	edx, DWORD PTR GPIOD_OUT_HIGH[rip]
	mov	rdi, rbp
	lea	rsi, .LC8[rip]
	call	devm_gpiod_get@PLT
	mov	QWORD PTR 40[rbx], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L21
	mov	edx, DWORD PTR GPIOD_OUT_LOW[rip]
	mov	rdi, rbp
	lea	rsi, .LC10[rip]
	call	devm_gpiod_get@PLT
	mov	QWORD PTR 32[rbx], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L22
	mov	edx, DWORD PTR GPIOD_OUT_LOW[rip]
	mov	rdi, rbp
	lea	rsi, .LC12[rip]
	call	devm_gpiod_get@PLT
	mov	QWORD PTR 24[rbx], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L23
	mov	edx, DWORD PTR GPIOD_IN[rip]
	mov	rdi, rbp
	lea	rsi, .LC14[rip]
	call	devm_gpiod_get_array@PLT
	mov	rdi, rax
	mov	r12, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L24
	lea	rax, ams_delta_ops[rip]
	mov	QWORD PTR 16[rbx], r12
	lea	rbp, 8[rbx]
	mov	DWORD PTR [rbx], 1
	mov	rdi, rbp
	mov	QWORD PTR 8[rbx], rax
	call	nand_controller_init@PLT
	mov	QWORD PTR 80[rbx], rbp
	mov	esi, 1
	mov	rdi, r13
	call	nand_scan@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	edi, DWORD PTR partition_info[rip]
	call	ARRAY_SIZE@PLT
	mov	esi, DWORD PTR partition_info[rip]
	mov	rdi, r14
	mov	edx, eax
	call	mtd_device_register@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L1
	mov	rdi, r13
	call	nand_cleanup@PLT
.L1:
	pop	rbx
	.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
.L17:
	.cfi_restore_state
	mov	rdi, QWORD PTR 72[rbx]
	call	PTR_ERR@PLT
	mov	rdi, rbp
	lea	rsi, .LC1[rip]
	mov	r12d, eax
	mov	edx, eax
	call	dev_warn@PLT
	pop	rbx
	.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	rdi, QWORD PTR 56[rbx]
	call	PTR_ERR@PLT
	mov	rdi, rbp
	lea	rsi, .LC5[rip]
	mov	r12d, eax
	mov	edx, eax
	call	dev_err@PLT
	pop	rbx
	.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
.L18:
	.cfi_restore_state
	mov	rdi, QWORD PTR 64[rbx]
	call	PTR_ERR@PLT
	mov	rdi, rbp
	lea	rsi, .LC3[rip]
	mov	r12d, eax
	mov	edx, eax
	call	dev_err@PLT
	pop	rbx
	.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
.L20:
	.cfi_restore_state
	mov	rdi, QWORD PTR 48[rbx]
	call	PTR_ERR@PLT
	lea	rsi, .LC7[rip]
	mov	rdi, rbp
	mov	edx, eax
	mov	r12d, eax
	call	dev_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L23:
	mov	rdi, QWORD PTR 24[rbx]
	call	PTR_ERR@PLT
	lea	rsi, .LC13[rip]
	mov	rdi, rbp
	mov	edx, eax
	mov	r12d, eax
	call	dev_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L21:
	mov	rdi, QWORD PTR 40[rbx]
	call	PTR_ERR@PLT
	lea	rsi, .LC9[rip]
	mov	rdi, rbp
	mov	edx, eax
	mov	r12d, eax
	call	dev_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L22:
	mov	rdi, QWORD PTR 32[rbx]
	call	PTR_ERR@PLT
	lea	rsi, .LC11[rip]
	mov	rdi, rbp
	mov	edx, eax
	mov	r12d, eax
	call	dev_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L24:
	mov	rdi, r12
	call	PTR_ERR@PLT
	lea	rsi, .LC15[rip]
	mov	rdi, rbp
	mov	edx, eax
	mov	r12d, eax
	call	dev_err@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	ams_delta_init, .-ams_delta_init
	.comm	partition_info,4,4
	.comm	ams_delta_ops,4,4
	.comm	NAND_ECC_SOFT,4,4
	.comm	NAND_ECC_HAMMING,4,4
	.comm	GPIOD_OUT_LOW,4,4
	.comm	GPIOD_OUT_HIGH,4,4
	.comm	GPIOD_IN,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_ams-delta.c_ams_delta_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"rdy\000"
	.align	2
.LC1:
	.ascii	"RDY GPIO request failed (%d)\012\000"
	.align	2
.LC2:
	.ascii	"nwp\000"
	.align	2
.LC3:
	.ascii	"NWP GPIO request failed (%d)\012\000"
	.align	2
.LC4:
	.ascii	"nce\000"
	.align	2
.LC5:
	.ascii	"NCE GPIO request failed (%d)\012\000"
	.align	2
.LC6:
	.ascii	"nre\000"
	.align	2
.LC7:
	.ascii	"NRE GPIO request failed (%d)\012\000"
	.align	2
.LC8:
	.ascii	"nwe\000"
	.align	2
.LC9:
	.ascii	"NWE GPIO request failed (%d)\012\000"
	.align	2
.LC10:
	.ascii	"ale\000"
	.align	2
.LC11:
	.ascii	"ALE GPIO request failed (%d)\012\000"
	.align	2
.LC12:
	.ascii	"cle\000"
	.align	2
.LC13:
	.ascii	"CLE GPIO request failed (%d)\012\000"
	.align	2
.LC14:
	.ascii	"data\000"
	.align	2
.LC15:
	.ascii	"data GPIO request failed: %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ams_delta_init, %function
ams_delta_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L26
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r1, #52
	ldr	r2, [r3]
	mov	r5, r0
	bl	devm_kzalloc
	subs	r4, r0, #0
	beq	.L17
	add	r7, r4, #40
	mov	r0, r7
	bl	nand_to_mtd
	ldr	r9, .L26+4
	mov	r1, r4
	str	r5, [r0]
	mov	r6, r0
	mov	r0, r7
	bl	nand_set_controller_data
	ldr	r2, [r9]
	ldr	r1, .L26+8
	mov	r0, r5
	bl	devm_gpiod_get_optional
	str	r0, [r4, #36]
	bl	IS_ERR
	cmp	r0, #0
	bne	.L18
	ldr	r2, .L26+12
	ldr	r3, .L26+16
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r8, .L26+20
	str	r3, [r4, #44]
	mov	r1, r4
	str	r2, [r4, #48]
	mov	r0, r5
	bl	platform_set_drvdata
	ldr	r2, [r8]
	ldr	r1, .L26+24
	mov	r0, r5
	bl	devm_gpiod_get
	str	r0, [r4, #32]
	bl	IS_ERR
	cmp	r0, #0
	bne	.L19
	ldr	r2, [r8]
	ldr	r1, .L26+28
	mov	r0, r5
	bl	devm_gpiod_get
	str	r0, [r4, #28]
	bl	IS_ERR
	cmp	r0, #0
	bne	.L20
	ldr	r2, [r8]
	ldr	r1, .L26+32
	mov	r0, r5
	bl	devm_gpiod_get
	str	r0, [r4, #24]
	bl	IS_ERR
	cmp	r0, #0
	bne	.L21
	ldr	r2, [r8]
	ldr	r1, .L26+36
	mov	r0, r5
	bl	devm_gpiod_get
	str	r0, [r4, #20]
	bl	IS_ERR
	cmp	r0, #0
	bne	.L22
	ldr	r8, .L26+40
	ldr	r1, .L26+44
	ldr	r2, [r8]
	mov	r0, r5
	bl	devm_gpiod_get
	str	r0, [r4, #16]
	bl	IS_ERR
	cmp	r0, #0
	bne	.L23
	ldr	r2, [r8]
	ldr	r1, .L26+48
	mov	r0, r5
	bl	devm_gpiod_get
	str	r0, [r4, #12]
	bl	IS_ERR
	cmp	r0, #0
	bne	.L24
	ldr	r2, [r9]
	ldr	r1, .L26+52
	mov	r0, r5
	bl	devm_gpiod_get_array
	mov	r8, r0
	bl	IS_ERR
	cmp	r0, #0
	bne	.L25
	mov	r5, r4
	mov	r9, #1
	ldr	r3, .L26+56
	str	r8, [r4, #8]
	str	r9, [r4]
	str	r3, [r5, #4]!
	mov	r0, r5
	bl	nand_controller_init
	str	r5, [r4, #40]
	mov	r1, r9
	mov	r0, r7
	bl	nand_scan
	subs	r4, r0, #0
	bne	.L1
	ldr	r3, .L26+60
	ldr	r4, [r3]
	mov	r0, r4
	bl	ARRAY_SIZE
	mov	r1, r4
	mov	r2, r0
	mov	r0, r6
	bl	mtd_device_register
	subs	r4, r0, #0
	beq	.L1
	mov	r0, r7
	bl	nand_cleanup
	b	.L1
.L18:
	ldr	r0, [r4, #36]
	bl	PTR_ERR
	mov	r4, r0
	ldr	r1, .L26+64
	mov	r0, r5
	mov	r2, r4
	bl	dev_warn
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L17:
	ldr	r3, .L26+68
	ldr	r0, [r3]
	rsb	r4, r0, #0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L20:
	ldr	r0, [r4, #28]
	bl	PTR_ERR
	mov	r4, r0
	ldr	r1, .L26+72
	mov	r0, r5
	mov	r2, r4
	bl	dev_err
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L19:
	ldr	r0, [r4, #32]
	bl	PTR_ERR
	mov	r4, r0
	ldr	r1, .L26+76
	mov	r0, r5
	mov	r2, r4
	bl	dev_err
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L21:
	ldr	r0, [r4, #24]
	bl	PTR_ERR
	mov	r4, r0
	ldr	r1, .L26+80
	mov	r0, r5
	mov	r2, r4
	bl	dev_err
	b	.L1
.L24:
	ldr	r0, [r4, #12]
	bl	PTR_ERR
	mov	r4, r0
	ldr	r1, .L26+84
	mov	r0, r5
	mov	r2, r4
	bl	dev_err
	b	.L1
.L22:
	ldr	r0, [r4, #20]
	bl	PTR_ERR
	mov	r4, r0
	ldr	r1, .L26+88
	mov	r0, r5
	mov	r2, r4
	bl	dev_err
	b	.L1
.L23:
	ldr	r0, [r4, #16]
	bl	PTR_ERR
	mov	r4, r0
	ldr	r1, .L26+92
	mov	r0, r5
	mov	r2, r4
	bl	dev_err
	b	.L1
.L25:
	mov	r0, r8
	bl	PTR_ERR
	mov	r4, r0
	ldr	r1, .L26+96
	mov	r0, r5
	mov	r2, r4
	bl	dev_err
	b	.L1
.L27:
	.align	2
.L26:
	.word	GFP_KERNEL
	.word	GPIOD_IN
	.word	.LC0
	.word	NAND_ECC_SOFT
	.word	NAND_ECC_HAMMING
	.word	GPIOD_OUT_HIGH
	.word	.LC2
	.word	.LC4
	.word	.LC6
	.word	.LC8
	.word	GPIOD_OUT_LOW
	.word	.LC10
	.word	.LC12
	.word	.LC14
	.word	ams_delta_ops
	.word	partition_info
	.word	.LC1
	.word	ENOMEM
	.word	.LC5
	.word	.LC3
	.word	.LC7
	.word	.LC13
	.word	.LC9
	.word	.LC11
	.word	.LC15
	.size	ams_delta_init, .-ams_delta_init
	.comm	partition_info,4,4
	.comm	ams_delta_ops,4,4
	.comm	NAND_ECC_SOFT,4,4
	.comm	NAND_ECC_HAMMING,4,4
	.comm	GPIOD_OUT_LOW,4,4
	.comm	GPIOD_OUT_HIGH,4,4
	.comm	GPIOD_IN,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
