	.file	"extr_brcmnand.c_brcmnand_print_cfg.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"KiB"
.LC1:
	.string	"B"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"%lluMiB total, %uKiB blocks, %u%s pages, %uB OOB, %u-bit"
	.section	.rodata.str1.1
.LC3:
	.string	", BCH-%u (1KiB sector)"
.LC4:
	.string	", BCH-%u"
	.text
	.p2align 4
	.type	brcmnand_print_cfg, @function
brcmnand_print_cfg:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r8d, DWORD PTR 4[rdx]
	mov	eax, DWORD PTR 24[rdx]
	mov	esi, DWORD PTR 28[rdx]
	cmp	r8d, 1023
	jg	.L2
	lea	r9, .LC1[rip]
.L6:
	mov	ecx, DWORD PTR [rbx]
	mov	rdx, QWORD PTR 32[rbx]
	push	rax
	.cfi_def_cfa_offset 56
	mov	rdi, r12
	push	rsi
	.cfi_def_cfa_offset 64
	xor	eax, eax
	lea	rsi, .LC2[rip]
	sar	ecx, 10
	shr	rdx, 20
	call	sprintf@PLT
	mov	edi, DWORD PTR 0[r13]
	mov	rsi, rbx
	movsx	rbp, eax
	call	is_hamming_ecc@PLT
	add	rbp, r12
	pop	rdx
	.cfi_def_cfa_offset 56
	pop	rcx
	.cfi_def_cfa_offset 48
	test	rax, rax
	jne	.L11
	cmp	QWORD PTR 16[rbx], 0
	mov	edx, DWORD PTR 8[rbx]
	lea	rsi, .LC4[rip]
	je	.L9
	add	edx, edx
	lea	rsi, .LC3[rip]
.L9:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	sprintf@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	sar	r8d, 10
	lea	r9, .LC0[rip]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L11:
	movabs	rax, 7956010533277671468
	mov	DWORD PTR 8[rbp], 1128603751
	mov	QWORD PTR 0[rbp], rax
	mov	eax, 67
	mov	WORD PTR 12[rbp], ax
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	brcmnand_print_cfg, .-brcmnand_print_cfg
	.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_brcmnand.c_brcmnand_print_cfg.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"KiB\000"
	.align	2
.LC1:
	.ascii	"B\000"
	.align	2
.LC2:
	.ascii	"%lluMiB total, %uKiB blocks, %u%s pages, %uB OOB, %"
	.ascii	"u-bit\000"
	.align	2
.LC3:
	.ascii	", Hamming ECC\000"
	.align	2
.LC4:
	.ascii	", BCH-%u (1KiB sector)\000"
	.align	2
.LC5:
	.ascii	", BCH-%u\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	brcmnand_print_cfg, %function
brcmnand_print_cfg:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r8, r9, lr}
	mov	r4, r2
	mov	r5, r1
	ldm	r4, {ip, lr}
	cmp	lr, #1024
	ldrge	r1, .L10
	ldrlt	r1, .L10+4
	sub	sp, sp, #24
	ldr	r2, [r2, #24]
	mov	r6, r0
	ldr	r0, [r4, #16]
	str	r1, [sp, #8]
	ldr	r1, [r4, #20]
	asrge	lr, lr, #10
	asr	r9, r2, #31
	asr	ip, ip, #10
	lsr	r2, r2, #20
	stm	sp, {ip, lr}
	orr	r2, r2, r9, lsl #12
	lsr	r3, r9, #20
	str	r0, [sp, #16]
	str	r1, [sp, #12]
	mov	r0, r5
	ldr	r1, .L10+8
	bl	sprintf
	mov	r3, r0
	mov	r1, r4
	ldr	r0, [r6]
	add	r5, r5, r3
	bl	is_hamming_ecc
	cmp	r0, #0
	bne	.L9
	ldr	r3, [r4, #12]
	ldr	r2, [r4, #8]
	cmp	r3, #0
	movne	r0, r5
	moveq	r0, r5
	ldrne	r1, .L10+12
	ldreq	r1, .L10+16
	lslne	r2, r2, #1
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r8, r9, lr}
	b	sprintf
.L9:
	mov	r0, r5
	mov	r2, #14
	ldr	r1, .L10+20
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r8, r9, lr}
	b	memcpy
.L11:
	.align	2
.L10:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC4
	.word	.LC5
	.word	.LC3
	.size	brcmnand_print_cfg, .-brcmnand_print_cfg
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
