	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lpc32xx_nand_probe
_lpc32xx_nand_probe:                    ## @lpc32xx_nand_probe
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movl	$152, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r15
	movq	%rax, %r14
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%rax, %rbx
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movl	%eax, 32(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.29:
	movl	32(%r14), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_28:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	(%rbx), %eax
	movl	%eax, 148(%r14)
	cmpl	$0, (%r13)
	je	LBB0_5
## %bb.6:
	movq	%r13, %rdi
	callq	_lpc32xx_parse_dt
	leaq	16(%r15), %rcx
	movq	%rax, 16(%r14)
	testq	%rax, %rax
	je	LBB0_8
LBB0_9:
	movl	(%rax), %ebx
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	je	LBB0_28
## %bb.10:
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	%ebx, %edi
	callq	_gpio_is_valid
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r13, %rdi
	callq	_devm_gpio_request
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_5:
	leaq	16(%r15), %rcx
	movq	16(%r14), %rax
	testq	%rax, %rax
	jne	LBB0_9
LBB0_8:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	movq	_ENOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_13:
	movq	%r14, %rdi
	callq	_lpc32xx_wp_disable
	movq	%r13, %rdi
	callq	_dev_get_platdata
	movl	%eax, 144(%r14)
	addq	$40, %r15
	movq	%r15, %rdi
	callq	_nand_to_mtd
	movq	%rax, %rbx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_nand_set_controller_data
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_nand_set_flash_node
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, 8(%rbx)
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_devm_clk_get
	movl	%eax, 4(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	movq	_ENOENT@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_27
LBB0_15:
	movl	4(%r14), %edi
	callq	_clk_prepare_enable
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_27
## %bb.16:
	movl	32(%r14), %edi
	callq	_SLC_DATA
	movq	%rax, 88(%r14)
	movl	32(%r14), %edi
	callq	_SLC_DATA
	movq	%rax, 80(%r14)
	movq	_lpc32xx_nand_cmd_ctrl@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 72(%r14)
	movq	_lpc32xx_nand_device_ready@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 68(%r14)
	movl	$20, 40(%r14)
	movq	%r14, %rdi
	callq	_lpc32xx_nand_setup
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	movq	_NAND_ECC_HW_SYNDROME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 136(%r14)
	movq	_lpc32xx_nand_read_byte@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%r14)
	movq	_lpc32xx_nand_read_buf@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 60(%r14)
	movq	_lpc32xx_nand_write_buf@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%r14)
	movq	_lpc32xx_nand_read_page_raw_syndrome@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 132(%r14)
	movq	_lpc32xx_nand_read_page_syndrome@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 128(%r14)
	movq	_lpc32xx_nand_write_page_raw_syndrome@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 124(%r14)
	movq	_lpc32xx_nand_write_page_syndrome@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 120(%r14)
	movq	_lpc32xx_nand_write_oob_syndrome@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 116(%r14)
	movq	_lpc32xx_nand_read_oob_syndrome@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 112(%r14)
	movq	_lpc32xx_nand_ecc_calculate@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 108(%r14)
	movq	_nand_correct_data@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 104(%r14)
	movl	$1, 96(%r14)
	movq	_lpc32xx_nand_ecc_enable@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 100(%r14)
	movq	_LPC32XX_DMA_DATA_SIZE@GOTPCREL(%rip), %rax
	movq	_LPC32XX_ECC_SAVE_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	addl	(%rax), %esi
	movl	%esi, (%r14)
	movl	(%r12), %edx
	movq	%r13, %rdi
	callq	_devm_kzalloc
	movq	%rax, 24(%r14)
	testq	%rax, %rax
	je	LBB0_17
## %bb.19:
	movq	%r14, %rdi
	callq	_lpc32xx_nand_dma_setup
	testl	%eax, %eax
	je	LBB0_21
## %bb.20:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_17:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_18:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_26
LBB0_21:
	movq	_lpc32xx_nand_controller_ops@GOTPCREL(%rip), %rax
	movq	%rax, 48(%r14)
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_nand_scan
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_25
## %bb.22:
	leaq	L_.str.4(%rip), %rax
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, (%rdi)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	4(%rax), %edx
	movl	8(%rax), %esi
	callq	_mtd_device_register
	testl	%eax, %eax
	je	LBB0_23
## %bb.24:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_nand_cleanup
LBB0_25:
	movl	8(%r14), %edi
	callq	_dma_release_channel
LBB0_26:
	movl	4(%r14), %edi
	callq	_clk_disable_unprepare
LBB0_27:
	movq	%r14, %rdi
	callq	_lpc32xx_wp_enable
	jmp	LBB0_28
LBB0_23:
	xorl	%ebx, %ebx
	jmp	LBB0_28
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Missing or bad NAND config from device tree\n"

	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
L_.str.1:                               ## @.str.1
	.asciz	"NAND WP"

L_.str.2:                               ## @.str.2
	.asciz	"GPIO not available\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
L_.str.3:                               ## @.str.3
	.asciz	"Clock failure\n"

	.comm	_lpc32xx_nand_cmd_ctrl,4,2      ## @lpc32xx_nand_cmd_ctrl
	.comm	_lpc32xx_nand_device_ready,4,2  ## @lpc32xx_nand_device_ready
	.comm	_NAND_ECC_HW_SYNDROME,4,2       ## @NAND_ECC_HW_SYNDROME
	.comm	_lpc32xx_nand_read_byte,4,2     ## @lpc32xx_nand_read_byte
	.comm	_lpc32xx_nand_read_buf,4,2      ## @lpc32xx_nand_read_buf
	.comm	_lpc32xx_nand_write_buf,4,2     ## @lpc32xx_nand_write_buf
	.comm	_lpc32xx_nand_read_page_raw_syndrome,4,2 ## @lpc32xx_nand_read_page_raw_syndrome
	.comm	_lpc32xx_nand_read_page_syndrome,4,2 ## @lpc32xx_nand_read_page_syndrome
	.comm	_lpc32xx_nand_write_page_raw_syndrome,4,2 ## @lpc32xx_nand_write_page_raw_syndrome
	.comm	_lpc32xx_nand_write_page_syndrome,4,2 ## @lpc32xx_nand_write_page_syndrome
	.comm	_lpc32xx_nand_write_oob_syndrome,4,2 ## @lpc32xx_nand_write_oob_syndrome
	.comm	_lpc32xx_nand_read_oob_syndrome,4,2 ## @lpc32xx_nand_read_oob_syndrome
	.comm	_lpc32xx_nand_ecc_calculate,4,2 ## @lpc32xx_nand_ecc_calculate
	.comm	_nand_correct_data,4,2          ## @nand_correct_data
	.comm	_lpc32xx_nand_ecc_enable,4,2    ## @lpc32xx_nand_ecc_enable
	.comm	_LPC32XX_DMA_DATA_SIZE,4,2      ## @LPC32XX_DMA_DATA_SIZE
	.comm	_LPC32XX_ECC_SAVE_SIZE,4,2      ## @LPC32XX_ECC_SAVE_SIZE
	.comm	_EIO,4,2                        ## @EIO
	.comm	_lpc32xx_nand_controller_ops,4,2 ## @lpc32xx_nand_controller_ops
L_.str.4:                               ## @.str.4
	.asciz	"nxp_lpc3220_slc"

	.no_dead_strip	_lpc32xx_nand_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lpc32xx_nand_probe
_lpc32xx_nand_probe:                    ; @lpc32xx_nand_probe
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x0
Lloh0:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	w1, #152
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
Lloh2:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_platform_get_resource
	mov	x21, x0
	mov	x0, x20
	mov	x1, x21
	bl	_devm_ioremap_resource
	str	w0, [x19, #32]
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.2:
	ldr	w0, [x19, #32]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_3:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_5:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldr	w8, [x21]
	str	w8, [x19, #148]
	ldr	w8, [x20]
	cbz	w8, LBB0_12
; %bb.7:
	mov	x0, x20
	bl	_lpc32xx_parse_dt
	mov	x25, x19
	str	x0, [x25, #16]!
	cbz	x0, LBB0_13
LBB0_8:
	ldr	w23, [x0]
Lloh7:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmn	w23, w8
	b.eq	LBB0_5
; %bb.9:
	mov	x0, x23
	bl	_gpio_is_valid
	cbz	x0, LBB0_14
; %bb.10:
	ldr	x8, [x25]
	ldr	w1, [x8]
Lloh10:
	adrp	x2, l_.str.1@PAGE
Lloh11:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_devm_gpio_request
	cbz	x0, LBB0_14
; %bb.11:
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh14:
	adrp	x8, _EBUSY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_4
LBB0_12:
	mov	x25, x19
	ldr	x0, [x25, #16]!
	cbnz	x0, LBB0_8
LBB0_13:
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh18:
	adrp	x8, _ENOENT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_4
LBB0_14:
	mov	x0, x19
	bl	_lpc32xx_wp_disable
	mov	x0, x20
	bl	_dev_get_platdata
	str	w0, [x19, #144]
	add	x21, x19, #40
	mov	x0, x21
	bl	_nand_to_mtd
	mov	x22, x0
	mov	x0, x21
	mov	x1, x19
	bl	_nand_set_controller_data
	ldr	w1, [x20]
	mov	x0, x21
	bl	_nand_set_flash_node
Lloh20:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	str	w8, [x22, #16]
	str	x20, [x22, #8]
	mov	x0, x20
	mov	x1, #0
	bl	_devm_clk_get
	str	w0, [x19, #4]
	bl	_IS_ERR
	cbz	x0, LBB0_16
; %bb.15:
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh25:
	adrp	x8, _ENOENT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_27
LBB0_16:
	ldr	w0, [x19, #4]
	bl	_clk_prepare_enable
	mov	x23, x0
	cbnz	w0, LBB0_27
; %bb.17:
	ldr	w0, [x19, #32]
	bl	_SLC_DATA
	str	x0, [x19, #88]
	ldr	w0, [x19, #32]
	bl	_SLC_DATA
	str	x0, [x19, #80]
Lloh28:
	adrp	x8, _lpc32xx_nand_cmd_ctrl@GOTPAGE
Lloh29:
	ldr	x8, [x8, _lpc32xx_nand_cmd_ctrl@GOTPAGEOFF]
Lloh30:
	adrp	x9, _lpc32xx_nand_device_ready@GOTPAGE
Lloh31:
	ldr	x9, [x9, _lpc32xx_nand_device_ready@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
Lloh33:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #68]
	mov	w8, #20
	str	w8, [x19, #40]
	mov	x0, x19
	bl	_lpc32xx_nand_setup
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
Lloh34:
	adrp	x8, _NAND_ECC_HW_SYNDROME@GOTPAGE
Lloh35:
	ldr	x8, [x8, _NAND_ECC_HW_SYNDROME@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	str	w8, [x19, #136]
Lloh37:
	adrp	x8, _lpc32xx_nand_read_byte@GOTPAGE
Lloh38:
	ldr	x8, [x8, _lpc32xx_nand_read_byte@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
Lloh40:
	adrp	x9, _lpc32xx_nand_read_buf@GOTPAGE
Lloh41:
	ldr	x9, [x9, _lpc32xx_nand_read_buf@GOTPAGEOFF]
	str	w8, [x19, #64]
Lloh42:
	ldr	w8, [x9]
Lloh43:
	adrp	x9, _lpc32xx_nand_write_buf@GOTPAGE
Lloh44:
	ldr	x9, [x9, _lpc32xx_nand_write_buf@GOTPAGEOFF]
Lloh45:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #56]
Lloh46:
	adrp	x8, _lpc32xx_nand_read_page_raw_syndrome@GOTPAGE
Lloh47:
	ldr	x8, [x8, _lpc32xx_nand_read_page_raw_syndrome@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
Lloh49:
	adrp	x9, _lpc32xx_nand_read_page_syndrome@GOTPAGE
Lloh50:
	ldr	x9, [x9, _lpc32xx_nand_read_page_syndrome@GOTPAGEOFF]
Lloh51:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #128]
Lloh52:
	adrp	x8, _lpc32xx_nand_write_page_raw_syndrome@GOTPAGE
Lloh53:
	ldr	x8, [x8, _lpc32xx_nand_write_page_raw_syndrome@GOTPAGEOFF]
Lloh54:
	ldr	w8, [x8]
Lloh55:
	adrp	x9, _lpc32xx_nand_write_page_syndrome@GOTPAGE
Lloh56:
	ldr	x9, [x9, _lpc32xx_nand_write_page_syndrome@GOTPAGEOFF]
Lloh57:
	ldr	w9, [x9]
Lloh58:
	adrp	x10, _lpc32xx_nand_write_oob_syndrome@GOTPAGE
Lloh59:
	ldr	x10, [x10, _lpc32xx_nand_write_oob_syndrome@GOTPAGEOFF]
	stp	w9, w8, [x19, #120]
Lloh60:
	ldr	w8, [x10]
Lloh61:
	adrp	x9, _lpc32xx_nand_read_oob_syndrome@GOTPAGE
Lloh62:
	ldr	x9, [x9, _lpc32xx_nand_read_oob_syndrome@GOTPAGEOFF]
Lloh63:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #112]
Lloh64:
	adrp	x8, _lpc32xx_nand_ecc_calculate@GOTPAGE
Lloh65:
	ldr	x8, [x8, _lpc32xx_nand_ecc_calculate@GOTPAGEOFF]
Lloh66:
	ldr	w8, [x8]
Lloh67:
	adrp	x9, _nand_correct_data@GOTPAGE
Lloh68:
	ldr	x9, [x9, _nand_correct_data@GOTPAGEOFF]
Lloh69:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #104]
	mov	w8, #1
Lloh70:
	adrp	x9, _lpc32xx_nand_ecc_enable@GOTPAGE
Lloh71:
	ldr	x9, [x9, _lpc32xx_nand_ecc_enable@GOTPAGEOFF]
Lloh72:
	ldr	w9, [x9]
	stp	w8, w9, [x19, #96]
Lloh73:
	adrp	x8, _LPC32XX_DMA_DATA_SIZE@GOTPAGE
Lloh74:
	ldr	x8, [x8, _LPC32XX_DMA_DATA_SIZE@GOTPAGEOFF]
Lloh75:
	ldr	w8, [x8]
Lloh76:
	adrp	x9, _LPC32XX_ECC_SAVE_SIZE@GOTPAGE
Lloh77:
	ldr	x9, [x9, _LPC32XX_ECC_SAVE_SIZE@GOTPAGEOFF]
Lloh78:
	ldr	w9, [x9]
	add	w1, w9, w8
	str	w1, [x19]
	ldr	w2, [x24]
	mov	x0, x20
	bl	_devm_kzalloc
	str	x0, [x19, #24]
	cbz	x0, LBB0_20
; %bb.18:
	mov	x0, x19
	bl	_lpc32xx_nand_dma_setup
	cbz	w0, LBB0_22
; %bb.19:
Lloh79:
	adrp	x8, _EIO@GOTPAGE
Lloh80:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_21
LBB0_20:
Lloh81:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh82:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_21:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_26
LBB0_22:
Lloh83:
	adrp	x8, _lpc32xx_nand_controller_ops@GOTPAGE
Lloh84:
	ldr	x8, [x8, _lpc32xx_nand_controller_ops@GOTPAGEOFF]
	str	x8, [x19, #48]
	mov	x0, x21
	mov	w1, #1
	bl	_nand_scan
	mov	x23, x0
	cbnz	w0, LBB0_25
; %bb.23:
Lloh85:
	adrp	x8, l_.str.4@PAGE
Lloh86:
	add	x8, x8, l_.str.4@PAGEOFF
	str	x8, [x22]
	ldr	x8, [x25]
	ldp	w2, w1, [x8, #4]
	mov	x0, x22
	bl	_mtd_device_register
	mov	x23, x0
	cbz	w0, LBB0_5
; %bb.24:
	mov	x0, x21
	bl	_nand_cleanup
LBB0_25:
	ldr	w0, [x19, #8]
	bl	_dma_release_channel
LBB0_26:
	ldr	w0, [x19, #4]
	bl	_clk_disable_unprepare
LBB0_27:
	mov	x0, x19
	bl	_lpc32xx_wp_enable
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh32
	.loh AdrpLdrGot	Lloh79, Lloh80
	.loh AdrpLdrGot	Lloh81, Lloh82
	.loh AdrpLdrGot	Lloh83, Lloh84
	.loh AdrpAdd	Lloh85, Lloh86
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Missing or bad NAND config from device tree\n"

	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
l_.str.1:                               ; @.str.1
	.asciz	"NAND WP"

l_.str.2:                               ; @.str.2
	.asciz	"GPIO not available\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
l_.str.3:                               ; @.str.3
	.asciz	"Clock failure\n"

	.comm	_lpc32xx_nand_cmd_ctrl,4,2      ; @lpc32xx_nand_cmd_ctrl
	.comm	_lpc32xx_nand_device_ready,4,2  ; @lpc32xx_nand_device_ready
	.comm	_NAND_ECC_HW_SYNDROME,4,2       ; @NAND_ECC_HW_SYNDROME
	.comm	_lpc32xx_nand_read_byte,4,2     ; @lpc32xx_nand_read_byte
	.comm	_lpc32xx_nand_read_buf,4,2      ; @lpc32xx_nand_read_buf
	.comm	_lpc32xx_nand_write_buf,4,2     ; @lpc32xx_nand_write_buf
	.comm	_lpc32xx_nand_read_page_raw_syndrome,4,2 ; @lpc32xx_nand_read_page_raw_syndrome
	.comm	_lpc32xx_nand_read_page_syndrome,4,2 ; @lpc32xx_nand_read_page_syndrome
	.comm	_lpc32xx_nand_write_page_raw_syndrome,4,2 ; @lpc32xx_nand_write_page_raw_syndrome
	.comm	_lpc32xx_nand_write_page_syndrome,4,2 ; @lpc32xx_nand_write_page_syndrome
	.comm	_lpc32xx_nand_write_oob_syndrome,4,2 ; @lpc32xx_nand_write_oob_syndrome
	.comm	_lpc32xx_nand_read_oob_syndrome,4,2 ; @lpc32xx_nand_read_oob_syndrome
	.comm	_lpc32xx_nand_ecc_calculate,4,2 ; @lpc32xx_nand_ecc_calculate
	.comm	_nand_correct_data,4,2          ; @nand_correct_data
	.comm	_lpc32xx_nand_ecc_enable,4,2    ; @lpc32xx_nand_ecc_enable
	.comm	_LPC32XX_DMA_DATA_SIZE,4,2      ; @LPC32XX_DMA_DATA_SIZE
	.comm	_LPC32XX_ECC_SAVE_SIZE,4,2      ; @LPC32XX_ECC_SAVE_SIZE
	.comm	_EIO,4,2                        ; @EIO
	.comm	_lpc32xx_nand_controller_ops,4,2 ; @lpc32xx_nand_controller_ops
l_.str.4:                               ; @.str.4
	.asciz	"nxp_lpc3220_slc"

	.no_dead_strip	_lpc32xx_nand_probe
.subsections_via_symbols
