	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lpc32xx_nand_remove
_lpc32xx_nand_remove:                   ## @lpc32xx_nand_remove
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	callq	_platform_get_drvdata
	movq	%rax, %r14
	leaq	12(%rax), %rdi
	callq	_nand_release
	movl	8(%r14), %edi
	callq	_dma_release_channel
	movl	4(%r14), %edi
	callq	_SLC_CTRL
	movl	%eax, %edi
	callq	_readl
	movq	_SLCCFG_CE_LOW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movl	4(%r14), %edi
	callq	_SLC_CTRL
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_writel
	movl	(%r14), %edi
	callq	_clk_disable_unprepare
	movq	%r14, %rdi
	callq	_lpc32xx_wp_enable
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SLCCFG_CE_LOW,4,2              ## @SLCCFG_CE_LOW
	.no_dead_strip	_lpc32xx_nand_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lpc32xx_nand_remove
_lpc32xx_nand_remove:                   ; @lpc32xx_nand_remove
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_platform_get_drvdata
	mov	x19, x0
	add	x0, x0, #12
	bl	_nand_release
	ldr	w0, [x19, #8]
	bl	_dma_release_channel
	ldr	w0, [x19, #4]
	bl	_SLC_CTRL
	bl	_readl
Lloh0:
	adrp	x8, _SLCCFG_CE_LOW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SLCCFG_CE_LOW@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	bic	w20, w0, w8
	ldr	w0, [x19, #4]
	bl	_SLC_CTRL
	mov	x1, x0
	mov	x0, x20
	bl	_writel
	ldr	w0, [x19]
	bl	_clk_disable_unprepare
	mov	x0, x19
	bl	_lpc32xx_wp_enable
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SLCCFG_CE_LOW,4,2              ; @SLCCFG_CE_LOW
	.no_dead_strip	_lpc32xx_nand_remove
.subsections_via_symbols
