	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function w90p910_nand_enable
_w90p910_nand_enable:                   ## @w90p910_nand_enable
	.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
	movq	%rdi, %rbx
	callq	_spin_lock
	movq	_RESET_FMI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_REG_FMICSR@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	addq	8(%rbx), %rsi
	callq	___raw_writel
	movq	(%r14), %rdi
	addq	8(%rbx), %rdi
	callq	___raw_readl
	movq	_NAND_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	testl	%eax, %edi
	jne	LBB0_2
## %bb.1:
	orl	%eax, %edi
	movq	(%r14), %rsi
	callq	___raw_writel
LBB0_2:
	movq	_REG_SMCSR@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	8(%rbx), %rdi
	callq	___raw_readl
	movq	_SWRST@GOTPCREL(%rip), %rcx
	movq	_PSIZE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	orl	(%rcx), %edi
	movq	_DMARWEN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edi
	movq	_BUSWID@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edi
	movq	_ECC4EN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edi
	movq	_NANDCS@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edi
	notl	%edi
	andl	%eax, %edi
	movq	_WP@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	(%r14), %rsi
	addq	8(%rbx), %rsi
	callq	___raw_writel
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_spin_unlock                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RESET_FMI,4,2                  ## @RESET_FMI
	.comm	_REG_FMICSR,8,3                 ## @REG_FMICSR
	.comm	_NAND_EN,4,2                    ## @NAND_EN
	.comm	_REG_SMCSR,8,3                  ## @REG_SMCSR
	.comm	_SWRST,4,2                      ## @SWRST
	.comm	_PSIZE,4,2                      ## @PSIZE
	.comm	_DMARWEN,4,2                    ## @DMARWEN
	.comm	_BUSWID,4,2                     ## @BUSWID
	.comm	_ECC4EN,4,2                     ## @ECC4EN
	.comm	_NANDCS,4,2                     ## @NANDCS
	.comm	_WP,4,2                         ## @WP
	.no_dead_strip	_w90p910_nand_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function w90p910_nand_enable
_w90p910_nand_enable:                   ; @w90p910_nand_enable
	.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
	mov	x19, x0
	bl	_spin_lock
Lloh0:
	adrp	x8, _RESET_FMI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RESET_FMI@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x20, _REG_FMICSR@GOTPAGE
Lloh4:
	ldr	x20, [x20, _REG_FMICSR@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	___raw_writel
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	___raw_readl
Lloh5:
	adrp	x8, _NAND_EN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NAND_EN@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_2
; %bb.1:
	orr	w0, w8, w0
	ldr	x1, [x20]
	bl	___raw_writel
LBB0_2:
	ldr	x8, [x19, #8]
Lloh8:
	adrp	x20, _REG_SMCSR@GOTPAGE
Lloh9:
	ldr	x20, [x20, _REG_SMCSR@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	___raw_readl
Lloh10:
	adrp	x8, _SWRST@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SWRST@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _PSIZE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _PSIZE@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh16:
	adrp	x9, _DMARWEN@GOTPAGE
Lloh17:
	ldr	x9, [x9, _DMARWEN@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh19:
	adrp	x9, _BUSWID@GOTPAGE
Lloh20:
	ldr	x9, [x9, _BUSWID@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh22:
	adrp	x9, _ECC4EN@GOTPAGE
Lloh23:
	ldr	x9, [x9, _ECC4EN@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh25:
	adrp	x9, _NANDCS@GOTPAGE
Lloh26:
	ldr	x9, [x9, _NANDCS@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh28:
	adrp	x9, _WP@GOTPAGE
Lloh29:
	ldr	x9, [x9, _WP@GOTPAGEOFF]
	bic	w8, w0, w8
Lloh30:
	ldr	w9, [x9]
	orr	w0, w8, w9
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	___raw_writel
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_spin_unlock
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_RESET_FMI,4,2                  ; @RESET_FMI
	.comm	_REG_FMICSR,8,3                 ; @REG_FMICSR
	.comm	_NAND_EN,4,2                    ; @NAND_EN
	.comm	_REG_SMCSR,8,3                  ; @REG_SMCSR
	.comm	_SWRST,4,2                      ; @SWRST
	.comm	_PSIZE,4,2                      ; @PSIZE
	.comm	_DMARWEN,4,2                    ; @DMARWEN
	.comm	_BUSWID,4,2                     ; @BUSWID
	.comm	_ECC4EN,4,2                     ; @ECC4EN
	.comm	_NANDCS,4,2                     ; @NANDCS
	.comm	_WP,4,2                         ; @WP
	.no_dead_strip	_w90p910_nand_enable
.subsections_via_symbols
