	.file	"extr_nand_hynix.c_hynix_nand_rr_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"failed to initialize read-retry infrastructure"
	.text
	.p2align 4
	.type	hynix_nand_rr_init, @function
hynix_nand_rr_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	hynix_nand_has_valid_jedecid@PLT
	test	eax, eax
	je	.L3
	mov	rax, QWORD PTR 0[rbp]
	mov	eax, DWORD PTR 20[rax]
	sar	eax, 4
	cmp	eax, 4
	je	.L16
.L3:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	xor	ebx, ebx
	xor	r12d, r12d
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L6:
	mov	esi, DWORD PTR hynix_mlc_1xnm_rr_otps[rip]
	mov	rdi, rbp
	call	hynix_mlc_1xnm_rr_init@PLT
	mov	ebx, eax
	test	eax, eax
	je	.L3
	add	r12d, 1
.L4:
	mov	edi, DWORD PTR hynix_mlc_1xnm_rr_otps[rip]
	call	ARRAY_SIZE@PLT
	cmp	eax, r12d
	jg	.L6
	test	ebx, ebx
	je	.L3
	lea	rdi, .LC0[rip]
	call	pr_warn@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	hynix_nand_rr_init, .-hynix_nand_rr_init
	.comm	hynix_mlc_1xnm_rr_otps,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_nand_hynix.c_hynix_nand_rr_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"failed to initialize read-retry infrastructure\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hynix_nand_rr_init, %function
hynix_nand_rr_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	bl	hynix_nand_has_valid_jedecid
	cmp	r0, #0
	beq	.L3
	ldr	r3, [r5]
	ldr	r3, [r3, #20]
	asr	r3, r3, #4
	cmp	r3, #4
	beq	.L16
.L3:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L16:
	mov	r4, #0
	ldr	r7, .L17
	mov	r6, r4
	b	.L4
.L6:
	mov	r0, r5
	ldr	r1, [r7]
	bl	hynix_mlc_1xnm_rr_init
	subs	r4, r0, #0
	beq	.L3
	add	r6, r6, #1
.L4:
	ldr	r0, [r7]
	bl	ARRAY_SIZE
	cmp	r0, r6
	bgt	.L6
	cmp	r4, #0
	beq	.L3
	ldr	r0, .L17+4
	bl	pr_warn
	b	.L3
.L18:
	.align	2
.L17:
	.word	hynix_mlc_1xnm_rr_otps
	.word	.LC0
	.size	hynix_nand_rr_init, .-hynix_nand_rr_init
	.comm	hynix_mlc_1xnm_rr_otps,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
