	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fsmc_nand_setup
_fsmc_nand_setup:                       ## @fsmc_nand_setup
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_FSMC_DEVTYPE_NAND@GOTPCREL(%rip), %rcx
	movq	_FSMC_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movq	%rdi, %r14
	movq	_FSMC_WAITON@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_FSMC_TCLR_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	movq	_FSMC_TCLR_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movb	%cl, -43(%rbp)                  ## 1-byte Spill
	movq	_FSMC_TAR_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	movq	_FSMC_TAR_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movb	%cl, -42(%rbp)                  ## 1-byte Spill
	movq	_FSMC_THIZ_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movq	_FSMC_THIZ_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movb	%cl, -41(%rbp)                  ## 1-byte Spill
	movq	_FSMC_THOLD_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movq	_FSMC_THOLD_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %r10b
	movq	_FSMC_TWAIT_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_FSMC_TWAIT_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %r15b
	movq	_FSMC_TSET_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	_FSMC_TSET_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movq	_NAND_BUSWIDTH_16@GOTPCREL(%rip), %rdi
	movl	(%rdi), %r11d
	andl	8(%r14), %r11d
	je	LBB0_2
## %bb.1:
	movq	_FSMC_DEVWID_16@GOTPCREL(%rip), %rdi
	movl	(%rdi), %r11d
LBB0_2:
	andl	20(%rsi), %r8d
	shll	%cl, %r8d
	andl	16(%rsi), %edx
	movl	%r15d, %ecx
	shll	%cl, %edx
	andl	12(%rsi), %r9d
	movl	%r10d, %ecx
	shll	%cl, %r9d
	andl	8(%rsi), %ebx
	movb	-41(%rbp), %cl                  ## 1-byte Reload
	shll	%cl, %ebx
	andl	4(%rsi), %r13d
	movb	-42(%rbp), %cl                  ## 1-byte Reload
	shll	%cl, %r13d
	orl	%r8d, %edx
	andl	(%rsi), %r12d
	orl	%r9d, %ebx
	movb	-43(%rbp), %cl                  ## 1-byte Reload
	shll	%cl, %r12d
	orl	%edx, %ebx
	orl	%r12d, %eax
	orl	%r13d, %eax
	orl	%r11d, %eax
	movq	_FSMC_PC@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%r14), %rsi
	movl	%eax, %edi
	callq	_writel_relaxed
	movq	_COMM@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	movl	%ebx, %edi
	callq	_writel_relaxed
	movq	_ATTRIB@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel_relaxed                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FSMC_DEVTYPE_NAND,4,2          ## @FSMC_DEVTYPE_NAND
	.comm	_FSMC_ENABLE,4,2                ## @FSMC_ENABLE
	.comm	_FSMC_WAITON,4,2                ## @FSMC_WAITON
	.comm	_FSMC_TCLR_MASK,4,2             ## @FSMC_TCLR_MASK
	.comm	_FSMC_TCLR_SHIFT,4,2            ## @FSMC_TCLR_SHIFT
	.comm	_FSMC_TAR_MASK,4,2              ## @FSMC_TAR_MASK
	.comm	_FSMC_TAR_SHIFT,4,2             ## @FSMC_TAR_SHIFT
	.comm	_FSMC_THIZ_MASK,4,2             ## @FSMC_THIZ_MASK
	.comm	_FSMC_THIZ_SHIFT,4,2            ## @FSMC_THIZ_SHIFT
	.comm	_FSMC_THOLD_MASK,4,2            ## @FSMC_THOLD_MASK
	.comm	_FSMC_THOLD_SHIFT,4,2           ## @FSMC_THOLD_SHIFT
	.comm	_FSMC_TWAIT_MASK,4,2            ## @FSMC_TWAIT_MASK
	.comm	_FSMC_TWAIT_SHIFT,4,2           ## @FSMC_TWAIT_SHIFT
	.comm	_FSMC_TSET_MASK,4,2             ## @FSMC_TSET_MASK
	.comm	_FSMC_TSET_SHIFT,4,2            ## @FSMC_TSET_SHIFT
	.comm	_NAND_BUSWIDTH_16,4,2           ## @NAND_BUSWIDTH_16
	.comm	_FSMC_DEVWID_16,4,2             ## @FSMC_DEVWID_16
	.comm	_FSMC_PC,8,3                    ## @FSMC_PC
	.comm	_COMM,8,3                       ## @COMM
	.comm	_ATTRIB,8,3                     ## @ATTRIB
	.no_dead_strip	_fsmc_nand_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fsmc_nand_setup
_fsmc_nand_setup:                       ; @fsmc_nand_setup
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _FSMC_DEVTYPE_NAND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FSMC_DEVTYPE_NAND@GOTPAGEOFF]
Lloh2:
	adrp	x9, _FSMC_ENABLE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _FSMC_ENABLE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _FSMC_WAITON@GOTPAGE
Lloh7:
	ldr	x9, [x9, _FSMC_WAITON@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh9:
	adrp	x9, _FSMC_TCLR_MASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _FSMC_TCLR_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x10, _FSMC_TCLR_SHIFT@GOTPAGE
Lloh13:
	ldr	x10, [x10, _FSMC_TCLR_SHIFT@GOTPAGEOFF]
	ldp	w11, w12, [x1]
Lloh14:
	adrp	x13, _FSMC_TAR_MASK@GOTPAGE
Lloh15:
	ldr	x13, [x13, _FSMC_TAR_MASK@GOTPAGEOFF]
Lloh16:
	adrp	x14, _FSMC_TAR_SHIFT@GOTPAGE
Lloh17:
	ldr	x14, [x14, _FSMC_TAR_SHIFT@GOTPAGEOFF]
Lloh18:
	ldr	w13, [x13]
Lloh19:
	adrp	x15, _FSMC_THIZ_MASK@GOTPAGE
Lloh20:
	ldr	x15, [x15, _FSMC_THIZ_MASK@GOTPAGEOFF]
Lloh21:
	ldr	w15, [x15]
Lloh22:
	adrp	x16, _FSMC_THIZ_SHIFT@GOTPAGE
Lloh23:
	ldr	x16, [x16, _FSMC_THIZ_SHIFT@GOTPAGEOFF]
	ldp	w17, w0, [x1, #8]
Lloh24:
	adrp	x2, _FSMC_THOLD_MASK@GOTPAGE
Lloh25:
	ldr	x2, [x2, _FSMC_THOLD_MASK@GOTPAGEOFF]
Lloh26:
	adrp	x3, _FSMC_THOLD_SHIFT@GOTPAGE
Lloh27:
	ldr	x3, [x3, _FSMC_THOLD_SHIFT@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x2]
Lloh29:
	adrp	x4, _FSMC_TWAIT_MASK@GOTPAGE
Lloh30:
	ldr	x4, [x4, _FSMC_TWAIT_MASK@GOTPAGEOFF]
Lloh31:
	ldr	w4, [x4]
Lloh32:
	adrp	x5, _FSMC_TWAIT_SHIFT@GOTPAGE
Lloh33:
	ldr	x5, [x5, _FSMC_TWAIT_SHIFT@GOTPAGEOFF]
	ldp	w6, w1, [x1, #16]
Lloh34:
	adrp	x7, _FSMC_TSET_MASK@GOTPAGE
Lloh35:
	ldr	x7, [x7, _FSMC_TSET_MASK@GOTPAGEOFF]
Lloh36:
	adrp	x20, _FSMC_TSET_SHIFT@GOTPAGE
Lloh37:
	ldr	x20, [x20, _FSMC_TSET_SHIFT@GOTPAGEOFF]
Lloh38:
	ldr	w7, [x7]
	ldr	w21, [x19, #8]
Lloh39:
	adrp	x22, _NAND_BUSWIDTH_16@GOTPAGE
Lloh40:
	ldr	x22, [x22, _NAND_BUSWIDTH_16@GOTPAGEOFF]
Lloh41:
	adrp	x23, _FSMC_DEVWID_16@GOTPAGE
Lloh42:
	ldr	x23, [x23, _FSMC_DEVWID_16@GOTPAGEOFF]
Lloh43:
	ldr	w22, [x22]
Lloh44:
	ldr	w23, [x23]
	tst	w22, w21
	csel	w21, wzr, w23, eq
Lloh45:
	ldr	w20, [x20]
	and	w1, w7, w1
	lsl	w20, w1, w20
Lloh46:
	ldr	w1, [x5]
	and	w4, w4, w6
	lsl	w22, w4, w1
Lloh47:
	ldr	w1, [x3]
	and	w0, w2, w0
	lsl	w23, w0, w1
Lloh48:
	ldr	w16, [x16]
	and	w15, w15, w17
	lsl	w24, w15, w16
Lloh49:
	ldr	w14, [x14]
	and	w12, w13, w12
	lsl	w12, w12, w14
Lloh50:
	ldr	w10, [x10]
	and	w9, w9, w11
	lsl	w9, w9, w10
	orr	w8, w8, w9
	orr	w8, w8, w12
	orr	w0, w8, w21
	ldr	x8, [x19]
Lloh51:
	adrp	x9, _FSMC_PC@GOTPAGE
Lloh52:
	ldr	x9, [x9, _FSMC_PC@GOTPAGEOFF]
Lloh53:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel_relaxed
	orr	w8, w23, w24
	orr	w8, w8, w22
	orr	w20, w8, w20
	ldr	x8, [x19]
Lloh54:
	adrp	x9, _COMM@GOTPAGE
Lloh55:
	ldr	x9, [x9, _COMM@GOTPAGEOFF]
Lloh56:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x20
	bl	_writel_relaxed
	ldr	x8, [x19]
Lloh57:
	adrp	x9, _ATTRIB@GOTPAGE
Lloh58:
	ldr	x9, [x9, _ATTRIB@GOTPAGEOFF]
Lloh59:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_writel_relaxed
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh43
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh45
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh38
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh46
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh47
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh28
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh48
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh49
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh18
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh50
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_FSMC_DEVTYPE_NAND,4,2          ; @FSMC_DEVTYPE_NAND
	.comm	_FSMC_ENABLE,4,2                ; @FSMC_ENABLE
	.comm	_FSMC_WAITON,4,2                ; @FSMC_WAITON
	.comm	_FSMC_TCLR_MASK,4,2             ; @FSMC_TCLR_MASK
	.comm	_FSMC_TCLR_SHIFT,4,2            ; @FSMC_TCLR_SHIFT
	.comm	_FSMC_TAR_MASK,4,2              ; @FSMC_TAR_MASK
	.comm	_FSMC_TAR_SHIFT,4,2             ; @FSMC_TAR_SHIFT
	.comm	_FSMC_THIZ_MASK,4,2             ; @FSMC_THIZ_MASK
	.comm	_FSMC_THIZ_SHIFT,4,2            ; @FSMC_THIZ_SHIFT
	.comm	_FSMC_THOLD_MASK,4,2            ; @FSMC_THOLD_MASK
	.comm	_FSMC_THOLD_SHIFT,4,2           ; @FSMC_THOLD_SHIFT
	.comm	_FSMC_TWAIT_MASK,4,2            ; @FSMC_TWAIT_MASK
	.comm	_FSMC_TWAIT_SHIFT,4,2           ; @FSMC_TWAIT_SHIFT
	.comm	_FSMC_TSET_MASK,4,2             ; @FSMC_TSET_MASK
	.comm	_FSMC_TSET_SHIFT,4,2            ; @FSMC_TSET_SHIFT
	.comm	_NAND_BUSWIDTH_16,4,2           ; @NAND_BUSWIDTH_16
	.comm	_FSMC_DEVWID_16,4,2             ; @FSMC_DEVWID_16
	.comm	_FSMC_PC,8,3                    ; @FSMC_PC
	.comm	_COMM,8,3                       ; @COMM
	.comm	_ATTRIB,8,3                     ; @ATTRIB
	.no_dead_strip	_fsmc_nand_setup
.subsections_via_symbols
