	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nand_davinci_hwctl_1bit
_nand_davinci_hwctl_1bit:               ## @nand_davinci_hwctl_1bit
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_to_davinci_nand
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_nand_davinci_readecc_1bit
	movq	_davinci_nand_lock@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_NANDFCR_OFFSET@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_davinci_nand_readl
	movl	%eax, %ebx
	movq	(%r15), %rdi
	addq	$8, %rdi
	callq	_BIT
	orl	%eax, %ebx
	movl	(%r12), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_davinci_nand_writel
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_davinci_nand_lock,4,2          ## @davinci_nand_lock
	.comm	_NANDFCR_OFFSET,4,2             ## @NANDFCR_OFFSET
	.no_dead_strip	_nand_davinci_hwctl_1bit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nand_davinci_hwctl_1bit
_nand_davinci_hwctl_1bit:               ; @nand_davinci_hwctl_1bit
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	bl	_to_davinci_nand
	mov	x20, x0
	mov	x0, x19
	bl	_nand_davinci_readecc_1bit
Lloh0:
	adrp	x19, _davinci_nand_lock@GOTPAGE
Lloh1:
	ldr	x19, [x19, _davinci_nand_lock@GOTPAGEOFF]
	mov	x0, x19
	bl	_spin_lock_irqsave
Lloh2:
	adrp	x22, _NANDFCR_OFFSET@GOTPAGE
Lloh3:
	ldr	x22, [x22, _NANDFCR_OFFSET@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_davinci_nand_readl
	mov	x21, x0
	ldr	x8, [x20]
	add	x0, x8, #8
	bl	_BIT
	orr	w2, w0, w21
	ldr	w1, [x22]
	mov	x0, x20
	bl	_davinci_nand_writel
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_davinci_nand_lock,4,2          ; @davinci_nand_lock
	.comm	_NANDFCR_OFFSET,4,2             ; @NANDFCR_OFFSET
	.no_dead_strip	_nand_davinci_hwctl_1bit
.subsections_via_symbols
