	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function marvell_nand_chip_init
_marvell_nand_chip_init:                ## @marvell_nand_chip_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r13
	callq	_dev_get_platdata
	movq	%rax, %r14
	movl	$1, %ebx
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	movq	24(%r12), %rax
	cmpq	$0, 8(%rax)
	jne	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	$4, %edx
	callq	_of_property_count_elems_of_size
	movl	%eax, %ebx
	testl	%eax, %eax
	jle	LBB0_34
LBB0_3:
	movq	_sels@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edx
	callq	_struct_size
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_22
## %bb.4:
	movq	%rax, %r15
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movl	%ebx, (%rax)
	movl	$-1, 4(%rax)
	leaq	32(%r12), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	%ebx, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	testq	%r14, %r14
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	24(%r12), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_18
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	%r13d, -44(%rbp)
	movl	%r13d, %edx
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	24(%r12), %rax
	movl	(%rax), %ecx
	cmpl	%ecx, %edx
	jge	LBB0_23
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%edx, %edi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	callq	_test_and_set_bit
	movl	-44(%rbp), %edx
	testq	%rax, %rax
	jne	LBB0_24
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	48(%r15), %rax
	movl	%edx, (%rax,%rbx)
	movl	-44(%rbp), %edx
	cmpq	$3, %rdx
	ja	LBB0_37
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	xorl	%ecx, %ecx
	leaq	LJTI0_0(%rip), %rsi
	movslq	(%rsi,%rdx,4), %rdx
	addq	%rsi, %rdx
	jmpq	*%rdx
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_NDCB0_CSEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	%ecx, 8(%rax,%rbx)
	testq	%r14, %r14
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	24(%r12), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_20
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	$0, -60(%rbp)
	xorl	%edx, %edx
LBB0_16:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	24(%r12), %rax
	movl	4(%rax), %ecx
	cmpl	%ecx, %edx
	jge	LBB0_25
## %bb.17:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	48(%r15), %rax
	movl	%edx, 4(%rax,%rbx)
	incq	%r13
	addq	$12, %rbx
	cmpq	%r13, -88(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_5
	jmp	LBB0_30
LBB0_18:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edx
	leaq	-44(%rbp), %rcx
	callq	_of_property_read_u32_index
	testl	%eax, %eax
	jne	LBB0_38
## %bb.19:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	-44(%rbp), %edx
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_8
LBB0_20:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.6(%rip), %rsi
	movl	%r13d, %edx
	leaq	-60(%rbp), %rcx
	callq	_of_property_read_u32_index
	testl	%eax, %eax
	jne	LBB0_39
## %bb.21:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	-60(%rbp), %edx
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_16
LBB0_22:
	leaq	L_.str.2(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_28
LBB0_23:
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_26
LBB0_24:
	leaq	L_.str.5(%rip), %rsi
	xorl	%r14d, %r14d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_27
LBB0_25:
	leaq	L_.str.8(%rip), %rsi
LBB0_26:
	xorl	%r14d, %r14d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_dev_err
LBB0_27:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_28:
	subl	(%rax), %r14d
LBB0_29:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_30:
	leaq	32(%r15), %r14
	leaq	16(%r12), %rax
	movq	%rax, 40(%r15)
	movq	%r14, %rdi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_nand_set_flash_node
	leaq	L_.str.9(%rip), %rsi
	movq	%rbx, %rdi
	callq	_of_property_read_bool
	testl	%eax, %eax
	jne	LBB0_32
## %bb.31:
	movq	_NAND_KEEP_TIMINGS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
LBB0_32:
	movq	%r14, %rdi
	callq	_nand_to_mtd
	movq	%rax, %r13
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, (%rax)
	movq	_NAND_ECC_HW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r15)
	movq	_NDTR0@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r12), %rdi
	callq	_readl_relaxed
	movq	%rax, 24(%r15)
	movq	_NDTR1@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r12), %rdi
	callq	_readl_relaxed
	movq	%rax, 16(%r15)
	movq	_NAND_BUSWIDTH_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 32(%r15)
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_nand_scan
	testl	%eax, %eax
	je	LBB0_35
## %bb.33:
	movl	%eax, %r14d
	leaq	L_.str.10(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_29
LBB0_34:
	leaq	L_.str.1(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_27
LBB0_35:
	movq	%r14, %rcx
	movq	%r14, %rbx
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_41
## %bb.36:
	movq	8(%rax), %rsi
	movl	(%rax), %edx
	movq	%r13, %rdi
	jmp	LBB0_42
LBB0_37:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	jmp	LBB0_28
LBB0_38:
	movl	%eax, %r14d
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_40
LBB0_39:
	movl	%eax, %r14d
	leaq	L_.str.7(%rip), %rsi
LBB0_40:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_29
LBB0_41:
	movq	%r13, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
LBB0_42:
	callq	_mtd_device_register
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_44
## %bb.43:
	leaq	L_.str.11(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	%rbx, %rdi
	callq	_nand_release
	jmp	LBB0_29
LBB0_44:
	addq	$8, %r15
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_list_add_tail
	xorl	%r14d, %r14d
	jmp	LBB0_29
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
LJTI0_0:
	.long	L0_0_set_13
	.long	L0_0_set_12
	.long	L0_0_set_13
	.long	L0_0_set_12
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reg"

L_.str.1:                               ## @.str.1
	.asciz	"missing/invalid reg property\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_sels,4,2                       ## @sels
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.2:                               ## @.str.2
	.asciz	"could not allocate chip structure\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.3:                               ## @.str.3
	.asciz	"could not retrieve reg property: %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"invalid reg value: %u (max CS = %d)\n"

L_.str.5:                               ## @.str.5
	.asciz	"CS %d already assigned\n"

	.comm	_NDCB0_CSEL,4,2                 ## @NDCB0_CSEL
L_.str.6:                               ## @.str.6
	.asciz	"nand-rb"

L_.str.7:                               ## @.str.7
	.asciz	"could not retrieve RB property: %d\n"

L_.str.8:                               ## @.str.8
	.asciz	"invalid reg value: %u (max RB = %d)\n"

L_.str.9:                               ## @.str.9
	.asciz	"marvell,nand-keep-config"

	.comm	_NAND_KEEP_TIMINGS,4,2          ## @NAND_KEEP_TIMINGS
	.comm	_NAND_ECC_HW,4,2                ## @NAND_ECC_HW
	.comm	_NDTR0,8,3                      ## @NDTR0
	.comm	_NDTR1,8,3                      ## @NDTR1
	.comm	_NAND_BUSWIDTH_AUTO,4,2         ## @NAND_BUSWIDTH_AUTO
L_.str.10:                              ## @.str.10
	.asciz	"could not scan the nand chip\n"

L_.str.11:                              ## @.str.11
	.asciz	"failed to register mtd device: %d\n"

	.no_dead_strip	_marvell_nand_chip_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function marvell_nand_chip_init
_marvell_nand_chip_init:                ; @marvell_nand_chip_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x2
	mov	x20, x1
	mov	x19, x0
	bl	_dev_get_platdata
	mov	x21, x0
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x20, #24]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_23
LBB0_2:
	mov	w26, #1
LBB0_3:
Lloh0:
	adrp	x8, _sels@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sels@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x2, x26
	bl	_struct_size
	mov	x1, x0
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_devm_kzalloc
	cbz	x0, LBB0_22
; %bb.4:
	mov	x22, x0
	str	x19, [sp, #16]                  ; 8-byte Folded Spill
	mov	x27, #0
	mov	x24, #0
	mov	w8, #-1
	stp	w26, w8, [x0]
	add	x25, x20, #32
	mov	w26, w26
Lloh6:
	adrp	x19, lJTI0_0@PAGE
Lloh7:
	add	x19, x19, lJTI0_0@PAGEOFF
Lloh8:
	adrp	x28, _NDCB0_CSEL@GOTPAGE
Lloh9:
	ldr	x28, [x28, _NDCB0_CSEL@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cbnz	x21, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20, #24]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_18
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	w24, [sp, #28]
	mov	x0, x24
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20, #24]
	ldr	w8, [x8]
	cmp	w0, w8
	b.ge	LBB0_25
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	x1, x25
	bl	_test_and_set_bit
	ldr	w9, [sp, #28]
	cbnz	x0, LBB0_26
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x22, #48]
	str	w9, [x8, x27]
	ldr	w10, [sp, #28]
	cmp	w10, #3
	b.hi	LBB0_30
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	w9, #0
	adr	x11, LBB0_12
	ldrb	w12, [x19, x10]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [x28]
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x8, x27
	str	w9, [x8, #8]
	cbnz	x21, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20, #24]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_20
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w8, #0
	str	wzr, [sp, #24]
LBB0_16:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x20, #24]
	ldr	w9, [x9, #4]
	cmp	w8, w9
	b.ge	LBB0_27
; %bb.17:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x22, #48]
	add	x9, x9, x27
	str	w8, [x9, #4]
	add	x24, x24, #1
	add	x27, x27, #12
	cmp	x26, x24
	b.ne	LBB0_5
	b	LBB0_33
LBB0_18:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x3, sp, #28
	mov	x0, x23
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x24
	bl	_of_property_read_u32_index
	cbnz	w0, LBB0_39
; %bb.19:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [sp, #28]
Lloh12:
	adrp	x28, _NDCB0_CSEL@GOTPAGE
Lloh13:
	ldr	x28, [x28, _NDCB0_CSEL@GOTPAGEOFF]
	b	LBB0_8
LBB0_20:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x3, sp, #24
	mov	x0, x23
Lloh14:
	adrp	x1, l_.str.6@PAGE
Lloh15:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x2, x24
	bl	_of_property_read_u32_index
	cbnz	w0, LBB0_40
; %bb.21:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [sp, #24]
Lloh16:
	adrp	x28, _NDCB0_CSEL@GOTPAGE
Lloh17:
	ldr	x28, [x28, _NDCB0_CSEL@GOTPAGEOFF]
	b	LBB0_16
LBB0_22:
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_31
LBB0_23:
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	mov	w2, #4
	bl	_of_property_count_elems_of_size
	mov	x26, x0
	cmp	w0, #0
	b.gt	LBB0_3
; %bb.24:
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	b	LBB0_29
LBB0_25:
	stp	x0, x8, [sp]
Lloh26:
	adrp	x1, l_.str.4@PAGE
Lloh27:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_28
LBB0_26:
	str	x9, [sp]
Lloh28:
	adrp	x1, l_.str.5@PAGE
Lloh29:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_28
LBB0_27:
	stp	x8, x9, [sp]
Lloh30:
	adrp	x1, l_.str.8@PAGE
Lloh31:
	add	x1, x1, l_.str.8@PAGEOFF
LBB0_28:
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
LBB0_29:
	bl	_dev_err
LBB0_30:
Lloh32:
	adrp	x8, _EINVAL@GOTPAGE
Lloh33:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_31:
	ldr	w8, [x8]
	neg	w28, w8
LBB0_32:
	mov	x0, x28
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_33:
	add	x24, x22, #32
	add	x8, x20, #16
	str	x8, [x22, #40]
	mov	x0, x24
	mov	x1, x23
	bl	_nand_set_flash_node
Lloh34:
	adrp	x1, l_.str.9@PAGE
Lloh35:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x23
	bl	_of_property_read_bool
	cbnz	w0, LBB0_35
; %bb.34:
Lloh36:
	adrp	x8, _NAND_KEEP_TIMINGS@GOTPAGE
Lloh37:
	ldr	x8, [x8, _NAND_KEEP_TIMINGS@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	ldr	w9, [x24]
	orr	w8, w9, w8
	str	w8, [x24]
LBB0_35:
	mov	x0, x24
	bl	_nand_to_mtd
	mov	x23, x0
	ldr	x19, [sp, #16]                  ; 8-byte Folded Reload
	str	x19, [x0]
Lloh39:
	adrp	x8, _NAND_ECC_HW@GOTPAGE
Lloh40:
	ldr	x8, [x8, _NAND_ECC_HW@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	str	w8, [x22, #36]
	ldr	x8, [x20, #8]
Lloh42:
	adrp	x9, _NDTR0@GOTPAGE
Lloh43:
	ldr	x9, [x9, _NDTR0@GOTPAGEOFF]
Lloh44:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl_relaxed
	str	x0, [x22, #24]
	ldr	x8, [x20, #8]
Lloh45:
	adrp	x9, _NDTR1@GOTPAGE
Lloh46:
	ldr	x9, [x9, _NDTR1@GOTPAGEOFF]
Lloh47:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl_relaxed
Lloh48:
	adrp	x8, _NAND_BUSWIDTH_AUTO@GOTPAGE
Lloh49:
	ldr	x8, [x8, _NAND_BUSWIDTH_AUTO@GOTPAGEOFF]
	str	x0, [x22, #16]
Lloh50:
	ldr	w8, [x8]
	ldr	w9, [x22, #32]
	orr	w8, w9, w8
	str	w8, [x22, #32]
	ldr	w1, [x22]
	mov	x0, x24
	bl	_nand_scan
	cbz	w0, LBB0_37
; %bb.36:
	mov	x28, x0
Lloh51:
	adrp	x1, l_.str.10@PAGE
Lloh52:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_32
LBB0_37:
	cbz	x21, LBB0_41
; %bb.38:
	ldr	x1, [x21, #8]
	ldr	w2, [x21]
	mov	x0, x23
	b	LBB0_42
LBB0_39:
	mov	x28, x0
	str	x28, [sp]
Lloh53:
	adrp	x1, l_.str.3@PAGE
Lloh54:
	add	x1, x1, l_.str.3@PAGEOFF
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	bl	_dev_err
	b	LBB0_32
LBB0_40:
	mov	x28, x0
	str	x28, [sp]
Lloh55:
	adrp	x1, l_.str.7@PAGE
Lloh56:
	add	x1, x1, l_.str.7@PAGEOFF
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	bl	_dev_err
                                        ; kill: def $w28 killed $w28 killed $x28 def $x28
	b	LBB0_32
LBB0_41:
	mov	x0, x23
	mov	x1, #0
	mov	w2, #0
LBB0_42:
	bl	_mtd_device_register
	mov	x28, x0
	cbz	w0, LBB0_44
; %bb.43:
	mov	x8, x28
	str	x8, [sp]
Lloh57:
	adrp	x1, l_.str.11@PAGE
Lloh58:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x0, x24
	bl	_nand_release
	b	LBB0_32
LBB0_44:
	add	x0, x22, #8
	mov	x1, x20
	bl	_list_add_tail
	b	LBB0_32
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpAdd	Lloh57, Lloh58
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_13-LBB0_12)>>2
	.byte	(LBB0_12-LBB0_12)>>2
	.byte	(LBB0_13-LBB0_12)>>2
	.byte	(LBB0_12-LBB0_12)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reg"

l_.str.1:                               ; @.str.1
	.asciz	"missing/invalid reg property\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_sels,4,2                       ; @sels
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.2:                               ; @.str.2
	.asciz	"could not allocate chip structure\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.3:                               ; @.str.3
	.asciz	"could not retrieve reg property: %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"invalid reg value: %u (max CS = %d)\n"

l_.str.5:                               ; @.str.5
	.asciz	"CS %d already assigned\n"

	.comm	_NDCB0_CSEL,4,2                 ; @NDCB0_CSEL
l_.str.6:                               ; @.str.6
	.asciz	"nand-rb"

l_.str.7:                               ; @.str.7
	.asciz	"could not retrieve RB property: %d\n"

l_.str.8:                               ; @.str.8
	.asciz	"invalid reg value: %u (max RB = %d)\n"

l_.str.9:                               ; @.str.9
	.asciz	"marvell,nand-keep-config"

	.comm	_NAND_KEEP_TIMINGS,4,2          ; @NAND_KEEP_TIMINGS
	.comm	_NAND_ECC_HW,4,2                ; @NAND_ECC_HW
	.comm	_NDTR0,8,3                      ; @NDTR0
	.comm	_NDTR1,8,3                      ; @NDTR1
	.comm	_NAND_BUSWIDTH_AUTO,4,2         ; @NAND_BUSWIDTH_AUTO
l_.str.10:                              ; @.str.10
	.asciz	"could not scan the nand chip\n"

l_.str.11:                              ; @.str.11
	.asciz	"failed to register mtd device: %d\n"

	.no_dead_strip	_marvell_nand_chip_init
.subsections_via_symbols
