	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nand_davinci_remove
_nand_davinci_remove:                   ## @nand_davinci_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	callq	_platform_get_drvdata
	movq	%rax, %rbx
	movq	_davinci_nand_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_irq
	movq	(%rbx), %rax
	movq	_NAND_ECC_HW_SYNDROME@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_ecc4_busy@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
LBB0_2:
	movq	_davinci_nand_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_irq
	movq	%rbx, %rdi
	callq	_nand_release
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_davinci_nand_lock,4,2          ## @davinci_nand_lock
	.comm	_NAND_ECC_HW_SYNDROME,8,3       ## @NAND_ECC_HW_SYNDROME
	.comm	_ecc4_busy,4,2                  ## @ecc4_busy
	.no_dead_strip	_nand_davinci_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nand_davinci_remove
_nand_davinci_remove:                   ; @nand_davinci_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
Lloh0:
	adrp	x0, _davinci_nand_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _davinci_nand_lock@GOTPAGEOFF]
	bl	_spin_lock_irq
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _NAND_ECC_HW_SYNDROME@GOTPAGE
Lloh3:
	ldr	x9, [x9, _NAND_ECC_HW_SYNDROME@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _ecc4_busy@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ecc4_busy@GOTPAGEOFF]
Lloh7:
	str	wzr, [x8]
LBB0_2:
Lloh8:
	adrp	x0, _davinci_nand_lock@GOTPAGE
Lloh9:
	ldr	x0, [x0, _davinci_nand_lock@GOTPAGEOFF]
	bl	_spin_unlock_irq
	mov	x0, x19
	bl	_nand_release
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_davinci_nand_lock,4,2          ; @davinci_nand_lock
	.comm	_NAND_ECC_HW_SYNDROME,8,3       ; @NAND_ECC_HW_SYNDROME
	.comm	_ecc4_busy,4,2                  ; @ecc4_busy
	.no_dead_strip	_nand_davinci_remove
.subsections_via_symbols
