	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtk_nfc_nand_chip_init
_mtk_nfc_nand_chip_init:                ## @mtk_nfc_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	callq	_of_get_property
	testl	%eax, %eax
	je	LBB0_13
## %bb.1:
	movl	-44(%rbp), %esi
	movl	%esi, %edx
	sarl	$2, %edx
	movl	%edx, -44(%rbp)
	cmpl	$4, %esi
	jb	LBB0_14
## %bb.2:
	movq	_MTK_NAND_MAX_NSELS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	jg	LBB0_14
## %bb.3:
	addl	$136, %esi
	andl	$-4, %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_16
## %bb.4:
	movq	%rax, %r13
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	-44(%rbp), %eax
	movl	%eax, (%r13)
	cmpl	$0, -44(%rbp)
	jle	LBB0_10
## %bb.5:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leaq	8(%rax), %rbx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	leaq	-60(%rbp), %rcx
	callq	_of_property_read_u32_index
	testl	%eax, %eax
	jne	LBB0_20
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	-60(%rbp), %edx
	movq	_MTK_NAND_MAX_NSELS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	jge	LBB0_21
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%edx, %edi
	movq	%rbx, %rsi
	callq	_test_and_set_bit
	movl	-60(%rbp), %edx
	testq	%rax, %rax
	jne	LBB0_22
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%r13), %rax
	movl	%edx, (%rax,%r15,4)
	incq	%r15
	movslq	-44(%rbp), %rax
	cmpq	%rax, %r15
	jl	LBB0_6
LBB0_10:
	leaq	24(%r13), %r15
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	leaq	4(%r12), %rax
	movq	%rax, 128(%r13)
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_nand_set_flash_node
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_nand_set_controller_data
	movq	_NAND_USE_BOUNCE_BUFFER@GOTPCREL(%rip), %rax
	movq	_NAND_SUBPAGE_READ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	orl	%ecx, 24(%r13)
	movq	_mtk_nfc_dev_ready@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 120(%r13)
	movq	_mtk_nfc_select_chip@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 116(%r13)
	movq	_mtk_nfc_write_byte@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 112(%r13)
	movq	_mtk_nfc_write_buf@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 108(%r13)
	movq	_mtk_nfc_read_byte@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 104(%r13)
	movq	_mtk_nfc_read_buf@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 100(%r13)
	movq	_mtk_nfc_cmd_ctrl@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 96(%r13)
	movq	_NAND_ECC_HW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 92(%r13)
	movq	_mtk_nfc_write_subpage_hwecc@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 88(%r13)
	movq	_mtk_nfc_write_page_raw@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 84(%r13)
	movq	_mtk_nfc_write_page_hwecc@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 80(%r13)
	movq	_mtk_nfc_write_oob_std@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 72(%r13)
	movq	%rax, 64(%r13)
	movq	_mtk_nfc_read_subpage_hwecc@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%r13)
	movq	_mtk_nfc_read_page_raw@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%r13)
	movq	_mtk_nfc_read_page_hwecc@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r13)
	movq	_mtk_nfc_read_oob_std@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 40(%r13)
	movq	%rax, 32(%r13)
	movq	%r15, %rdi
	callq	_nand_to_mtd
	movq	%rax, %rbx
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, 8(%rbx)
	movq	_MTK_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	_mtk_nfc_ooblayout_ops@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_mtd_set_ooblayout
	movq	%r12, %rdi
	callq	_mtk_nfc_hw_init
	movl	-44(%rbp), %esi
	movq	%r15, %rdi
	callq	_nand_scan
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_19
## %bb.11:
	xorl	%r12d, %r12d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_mtd_device_register
	testl	%eax, %eax
	je	LBB0_24
## %bb.12:
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_dev_err
	movq	%r15, %rdi
	callq	_nand_release
	movl	%ebx, %r12d
	jmp	LBB0_19
LBB0_13:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_14:
	leaq	L_.str.1(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%rbx, %rdi
LBB0_15:
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_16:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_17:
	xorl	%r12d, %r12d
LBB0_18:
	subl	(%rax), %r12d
LBB0_19:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movl	%eax, %r12d
	leaq	L_.str.2(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_19
LBB0_21:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_23
LBB0_22:
	leaq	L_.str.4(%rip), %rsi
LBB0_23:
	xorl	%r12d, %r12d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_15
LBB0_24:
	addq	$16, %r13
	movq	%r13, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_list_add_tail
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reg"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_MTK_NAND_MAX_NSELS,4,2         ## @MTK_NAND_MAX_NSELS
L_.str.1:                               ## @.str.1
	.asciz	"invalid reg property size %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.2:                               ## @.str.2
	.asciz	"reg property failure : %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"invalid CS: %u\n"

L_.str.4:                               ## @.str.4
	.asciz	"CS %u already assigned\n"

	.comm	_NAND_USE_BOUNCE_BUFFER,4,2     ## @NAND_USE_BOUNCE_BUFFER
	.comm	_NAND_SUBPAGE_READ,4,2          ## @NAND_SUBPAGE_READ
	.comm	_mtk_nfc_dev_ready,4,2          ## @mtk_nfc_dev_ready
	.comm	_mtk_nfc_select_chip,4,2        ## @mtk_nfc_select_chip
	.comm	_mtk_nfc_write_byte,4,2         ## @mtk_nfc_write_byte
	.comm	_mtk_nfc_write_buf,4,2          ## @mtk_nfc_write_buf
	.comm	_mtk_nfc_read_byte,4,2          ## @mtk_nfc_read_byte
	.comm	_mtk_nfc_read_buf,4,2           ## @mtk_nfc_read_buf
	.comm	_mtk_nfc_cmd_ctrl,4,2           ## @mtk_nfc_cmd_ctrl
	.comm	_NAND_ECC_HW,4,2                ## @NAND_ECC_HW
	.comm	_mtk_nfc_write_subpage_hwecc,4,2 ## @mtk_nfc_write_subpage_hwecc
	.comm	_mtk_nfc_write_page_raw,4,2     ## @mtk_nfc_write_page_raw
	.comm	_mtk_nfc_write_page_hwecc,4,2   ## @mtk_nfc_write_page_hwecc
	.comm	_mtk_nfc_write_oob_std,8,3      ## @mtk_nfc_write_oob_std
	.comm	_mtk_nfc_read_subpage_hwecc,4,2 ## @mtk_nfc_read_subpage_hwecc
	.comm	_mtk_nfc_read_page_raw,4,2      ## @mtk_nfc_read_page_raw
	.comm	_mtk_nfc_read_page_hwecc,4,2    ## @mtk_nfc_read_page_hwecc
	.comm	_mtk_nfc_read_oob_std,8,3       ## @mtk_nfc_read_oob_std
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_MTK_NAME,4,2                   ## @MTK_NAME
	.comm	_mtk_nfc_ooblayout_ops,4,2      ## @mtk_nfc_ooblayout_ops
L_.str.5:                               ## @.str.5
	.asciz	"mtd parse partition error\n"

	.no_dead_strip	_mtk_nfc_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 mtk_nfc_nand_chip_init
_mtk_nfc_nand_chip_init:                ; @mtk_nfc_nand_chip_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	mov	x0, x23
	bl	_of_get_property
	cbz	w0, LBB0_4
; %bb.1:
	ldr	w9, [sp, #12]
	asr	w8, w9, #2
	str	w8, [sp, #12]
Lloh2:
	adrp	x27, _MTK_NAND_MAX_NSELS@GOTPAGE
Lloh3:
	ldr	x27, [x27, _MTK_NAND_MAX_NSELS@GOTPAGEOFF]
	ldr	w10, [x27]
	cmp	w9, #4
	ccmp	w8, w10, #0, hs
	b.le	LBB0_5
; %bb.2:
	str	x8, [sp]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_3:
	mov	x0, x19
	bl	_dev_err
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_16
LBB0_4:
Lloh8:
	adrp	x8, _ENODEV@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_16
LBB0_5:
	add	w8, w9, #136
	and	w1, w8, #0xfffffffc
Lloh10:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_devm_kzalloc
	cbz	x0, LBB0_15
; %bb.6:
	mov	x21, x0
	ldr	w8, [sp, #12]
	str	w8, [x0]
	ldr	w8, [sp, #12]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.7:
	mov	x22, #0
	add	x25, x20, #8
Lloh13:
	adrp	x26, l_.str@PAGE
Lloh14:
	add	x26, x26, l_.str@PAGEOFF
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	add	x3, sp, #8
	mov	x0, x23
	mov	x1, x26
	mov	x2, x22
	bl	_of_property_read_u32_index
	cbnz	w0, LBB0_18
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [sp, #8]
	ldr	w8, [x27]
	cmp	w0, w8
	b.ge	LBB0_19
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	x1, x25
	bl	_test_and_set_bit
	ldr	w8, [sp, #8]
	cbnz	x0, LBB0_20
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x9, [x21, #8]
	str	w8, [x9, x22, lsl #2]
	add	x22, x22, #1
	ldrsw	x8, [sp, #12]
	cmp	x22, x8
	b.lt	LBB0_8
LBB0_12:
	add	x22, x21, #24
	add	x8, x20, #4
	str	x8, [x21, #128]
	mov	x0, x22
	mov	x1, x23
	bl	_nand_set_flash_node
	mov	x0, x22
	mov	x1, x20
	bl	_nand_set_controller_data
Lloh15:
	adrp	x8, _NAND_USE_BOUNCE_BUFFER@GOTPAGE
Lloh16:
	ldr	x8, [x8, _NAND_USE_BOUNCE_BUFFER@GOTPAGEOFF]
Lloh17:
	adrp	x9, _NAND_SUBPAGE_READ@GOTPAGE
Lloh18:
	ldr	x9, [x9, _NAND_SUBPAGE_READ@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x21, #24]
	orr	w8, w8, w9
	str	w8, [x21, #24]
Lloh21:
	adrp	x8, _mtk_nfc_dev_ready@GOTPAGE
Lloh22:
	ldr	x8, [x8, _mtk_nfc_dev_ready@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	w8, [x21, #120]
Lloh24:
	adrp	x8, _mtk_nfc_select_chip@GOTPAGE
Lloh25:
	ldr	x8, [x8, _mtk_nfc_select_chip@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _mtk_nfc_write_byte@GOTPAGE
Lloh28:
	ldr	x9, [x9, _mtk_nfc_write_byte@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #112]
Lloh30:
	adrp	x8, _mtk_nfc_write_buf@GOTPAGE
Lloh31:
	ldr	x8, [x8, _mtk_nfc_write_buf@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
Lloh33:
	adrp	x9, _mtk_nfc_read_byte@GOTPAGE
Lloh34:
	ldr	x9, [x9, _mtk_nfc_read_byte@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #104]
Lloh36:
	adrp	x8, _mtk_nfc_read_buf@GOTPAGE
Lloh37:
	ldr	x8, [x8, _mtk_nfc_read_buf@GOTPAGEOFF]
Lloh38:
	adrp	x9, _mtk_nfc_cmd_ctrl@GOTPAGE
Lloh39:
	ldr	x9, [x9, _mtk_nfc_cmd_ctrl@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
Lloh41:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #96]
Lloh42:
	adrp	x8, _NAND_ECC_HW@GOTPAGE
Lloh43:
	ldr	x8, [x8, _NAND_ECC_HW@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
Lloh45:
	adrp	x9, _mtk_nfc_write_subpage_hwecc@GOTPAGE
Lloh46:
	ldr	x9, [x9, _mtk_nfc_write_subpage_hwecc@GOTPAGEOFF]
Lloh47:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #88]
Lloh48:
	adrp	x8, _mtk_nfc_write_page_raw@GOTPAGE
Lloh49:
	ldr	x8, [x8, _mtk_nfc_write_page_raw@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
Lloh51:
	adrp	x9, _mtk_nfc_write_page_hwecc@GOTPAGE
Lloh52:
	ldr	x9, [x9, _mtk_nfc_write_page_hwecc@GOTPAGEOFF]
Lloh53:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #80]
Lloh54:
	adrp	x8, _mtk_nfc_write_oob_std@GOTPAGE
Lloh55:
	ldr	x8, [x8, _mtk_nfc_write_oob_std@GOTPAGEOFF]
Lloh56:
	ldr	x8, [x8]
	stp	x8, x8, [x21, #64]
Lloh57:
	adrp	x8, _mtk_nfc_read_subpage_hwecc@GOTPAGE
Lloh58:
	ldr	x8, [x8, _mtk_nfc_read_subpage_hwecc@GOTPAGEOFF]
Lloh59:
	ldr	w8, [x8]
Lloh60:
	adrp	x9, _mtk_nfc_read_page_raw@GOTPAGE
Lloh61:
	ldr	x9, [x9, _mtk_nfc_read_page_raw@GOTPAGEOFF]
	str	w8, [x21, #56]
Lloh62:
	ldr	w8, [x9]
Lloh63:
	adrp	x9, _mtk_nfc_read_page_hwecc@GOTPAGE
Lloh64:
	ldr	x9, [x9, _mtk_nfc_read_page_hwecc@GOTPAGEOFF]
Lloh65:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #48]
Lloh66:
	adrp	x8, _mtk_nfc_read_oob_std@GOTPAGE
Lloh67:
	ldr	x8, [x8, _mtk_nfc_read_oob_std@GOTPAGEOFF]
Lloh68:
	ldr	x8, [x8]
	stp	x8, x8, [x21, #32]
	mov	x0, x22
	bl	_nand_to_mtd
	mov	x23, x0
Lloh69:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh70:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh71:
	ldr	w8, [x8]
	str	w8, [x0, #16]
	str	x19, [x0, #8]
Lloh72:
	adrp	x8, _MTK_NAME@GOTPAGE
Lloh73:
	ldr	x8, [x8, _MTK_NAME@GOTPAGEOFF]
Lloh74:
	ldr	w8, [x8]
	str	w8, [x0]
Lloh75:
	adrp	x1, _mtk_nfc_ooblayout_ops@GOTPAGE
Lloh76:
	ldr	x1, [x1, _mtk_nfc_ooblayout_ops@GOTPAGEOFF]
	bl	_mtd_set_ooblayout
	mov	x0, x20
	bl	_mtk_nfc_hw_init
	ldr	w1, [sp, #12]
	mov	x0, x22
	bl	_nand_scan
	mov	x24, x0
	cbnz	w0, LBB0_17
; %bb.13:
	mov	x0, x23
	mov	x1, #0
	mov	w2, #0
	bl	_mtd_device_register
	mov	x24, x0
	cbz	w0, LBB0_21
; %bb.14:
Lloh77:
	adrp	x1, l_.str.5@PAGE
Lloh78:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x0, x22
	bl	_nand_release
	b	LBB0_17
LBB0_15:
Lloh79:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh80:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_16:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_17:
	mov	x0, x24
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_18:
	mov	x24, x0
	str	x24, [sp]
Lloh81:
	adrp	x1, l_.str.2@PAGE
Lloh82:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_17
LBB0_19:
	str	x0, [sp]
Lloh83:
	adrp	x1, l_.str.3@PAGE
Lloh84:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_3
LBB0_20:
	str	x8, [sp]
Lloh85:
	adrp	x1, l_.str.4@PAGE
Lloh86:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_3
LBB0_21:
	add	x0, x21, #16
	mov	x1, x20
	bl	_list_add_tail
	b	LBB0_17
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh40
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh19
	.loh AdrpAdd	Lloh77, Lloh78
	.loh AdrpLdrGot	Lloh79, Lloh80
	.loh AdrpAdd	Lloh81, Lloh82
	.loh AdrpAdd	Lloh83, Lloh84
	.loh AdrpAdd	Lloh85, Lloh86
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reg"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_MTK_NAND_MAX_NSELS,4,2         ; @MTK_NAND_MAX_NSELS
l_.str.1:                               ; @.str.1
	.asciz	"invalid reg property size %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.2:                               ; @.str.2
	.asciz	"reg property failure : %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"invalid CS: %u\n"

l_.str.4:                               ; @.str.4
	.asciz	"CS %u already assigned\n"

	.comm	_NAND_USE_BOUNCE_BUFFER,4,2     ; @NAND_USE_BOUNCE_BUFFER
	.comm	_NAND_SUBPAGE_READ,4,2          ; @NAND_SUBPAGE_READ
	.comm	_mtk_nfc_dev_ready,4,2          ; @mtk_nfc_dev_ready
	.comm	_mtk_nfc_select_chip,4,2        ; @mtk_nfc_select_chip
	.comm	_mtk_nfc_write_byte,4,2         ; @mtk_nfc_write_byte
	.comm	_mtk_nfc_write_buf,4,2          ; @mtk_nfc_write_buf
	.comm	_mtk_nfc_read_byte,4,2          ; @mtk_nfc_read_byte
	.comm	_mtk_nfc_read_buf,4,2           ; @mtk_nfc_read_buf
	.comm	_mtk_nfc_cmd_ctrl,4,2           ; @mtk_nfc_cmd_ctrl
	.comm	_NAND_ECC_HW,4,2                ; @NAND_ECC_HW
	.comm	_mtk_nfc_write_subpage_hwecc,4,2 ; @mtk_nfc_write_subpage_hwecc
	.comm	_mtk_nfc_write_page_raw,4,2     ; @mtk_nfc_write_page_raw
	.comm	_mtk_nfc_write_page_hwecc,4,2   ; @mtk_nfc_write_page_hwecc
	.comm	_mtk_nfc_write_oob_std,8,3      ; @mtk_nfc_write_oob_std
	.comm	_mtk_nfc_read_subpage_hwecc,4,2 ; @mtk_nfc_read_subpage_hwecc
	.comm	_mtk_nfc_read_page_raw,4,2      ; @mtk_nfc_read_page_raw
	.comm	_mtk_nfc_read_page_hwecc,4,2    ; @mtk_nfc_read_page_hwecc
	.comm	_mtk_nfc_read_oob_std,8,3       ; @mtk_nfc_read_oob_std
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_MTK_NAME,4,2                   ; @MTK_NAME
	.comm	_mtk_nfc_ooblayout_ops,4,2      ; @mtk_nfc_ooblayout_ops
l_.str.5:                               ; @.str.5
	.asciz	"mtd parse partition error\n"

	.no_dead_strip	_mtk_nfc_nand_chip_init
.subsections_via_symbols
