	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmnand_save_restore_cs_config
_brcmnand_save_restore_cs_config:       ## @brcmnand_save_restore_cs_config
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r13d
	movq	%rdi, %rbx
	movq	48(%rdi), %r14
	movl	40(%rdi), %esi
	movq	_BRCMNAND_CS_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_brcmnand_cs_offset
	movq	%rax, %r12
	movl	40(%rbx), %esi
	movq	_BRCMNAND_CS_CFG_EXT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_brcmnand_cs_offset
	movq	%rax, %r15
	movl	40(%rbx), %esi
	movq	_BRCMNAND_CS_ACC_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_brcmnand_cs_offset
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	40(%rbx), %esi
	movq	_BRCMNAND_CS_TIMING1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_brcmnand_cs_offset
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	40(%rbx), %esi
	movq	_BRCMNAND_CS_TIMING2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_brcmnand_cs_offset
	testl	%r13d, %r13d
	je	LBB0_4
## %bb.1:
	movq	%rax, %r13
	movq	32(%rbx), %rdx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_nand_writereg
	cmpq	%r15, %r12
	je	LBB0_3
## %bb.2:
	movq	24(%rbx), %rdx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_nand_writereg
LBB0_3:
	movq	16(%rbx), %rdx
	movq	%r14, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_nand_writereg
	movq	8(%rbx), %rdx
	movq	%r14, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_nand_writereg
	movq	(%rbx), %rdx
	movq	%r14, %rdi
	movq	%r13, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nand_writereg                  ## TAILCALL
LBB0_4:
	movq	%rax, %r13
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_nand_readreg
	movq	%rax, 32(%rbx)
	cmpq	%r15, %r12
	je	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_nand_readreg
	movq	%rax, 24(%rbx)
LBB0_6:
	movq	%r14, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_nand_readreg
	movq	%rax, 16(%rbx)
	movq	%r14, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_nand_readreg
	movq	%rax, 8(%rbx)
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_nand_readreg
	movq	%rax, (%rbx)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BRCMNAND_CS_CFG,4,2            ## @BRCMNAND_CS_CFG
	.comm	_BRCMNAND_CS_CFG_EXT,4,2        ## @BRCMNAND_CS_CFG_EXT
	.comm	_BRCMNAND_CS_ACC_CONTROL,4,2    ## @BRCMNAND_CS_ACC_CONTROL
	.comm	_BRCMNAND_CS_TIMING1,4,2        ## @BRCMNAND_CS_TIMING1
	.comm	_BRCMNAND_CS_TIMING2,4,2        ## @BRCMNAND_CS_TIMING2
	.no_dead_strip	_brcmnand_save_restore_cs_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmnand_save_restore_cs_config
_brcmnand_save_restore_cs_config:       ; @brcmnand_save_restore_cs_config
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x26, x1
	mov	x19, x0
	ldr	x20, [x0, #48]
	ldr	w1, [x0, #40]
Lloh0:
	adrp	x8, _BRCMNAND_CS_CFG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BRCMNAND_CS_CFG@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_brcmnand_cs_offset
	mov	x25, x0
	ldr	w1, [x19, #40]
Lloh3:
	adrp	x8, _BRCMNAND_CS_CFG_EXT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BRCMNAND_CS_CFG_EXT@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_brcmnand_cs_offset
	mov	x24, x0
	ldr	w1, [x19, #40]
Lloh6:
	adrp	x8, _BRCMNAND_CS_ACC_CONTROL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BRCMNAND_CS_ACC_CONTROL@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_brcmnand_cs_offset
	mov	x23, x0
	ldr	w1, [x19, #40]
Lloh9:
	adrp	x8, _BRCMNAND_CS_TIMING1@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BRCMNAND_CS_TIMING1@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_brcmnand_cs_offset
	mov	x22, x0
	ldr	w1, [x19, #40]
Lloh12:
	adrp	x8, _BRCMNAND_CS_TIMING2@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BRCMNAND_CS_TIMING2@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_brcmnand_cs_offset
	mov	x21, x0
	cbz	w26, LBB0_4
; %bb.1:
	ldr	x2, [x19, #32]
	mov	x0, x20
	mov	x1, x25
	bl	_nand_writereg
	cmp	x25, x24
	b.eq	LBB0_3
; %bb.2:
	ldr	x2, [x19, #24]
	mov	x0, x20
	mov	x1, x24
	bl	_nand_writereg
LBB0_3:
	ldr	x2, [x19, #16]
	mov	x0, x20
	mov	x1, x23
	bl	_nand_writereg
	ldr	x2, [x19, #8]
	mov	x0, x20
	mov	x1, x22
	bl	_nand_writereg
	ldr	x2, [x19]
	mov	x0, x20
	mov	x1, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_nand_writereg
LBB0_4:
	mov	x0, x20
	mov	x1, x25
	bl	_nand_readreg
	str	x0, [x19, #32]
	cmp	x25, x24
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x20
	mov	x1, x24
	bl	_nand_readreg
	str	x0, [x19, #24]
LBB0_6:
	mov	x0, x20
	mov	x1, x23
	bl	_nand_readreg
	str	x0, [x19, #16]
	mov	x0, x20
	mov	x1, x22
	bl	_nand_readreg
	str	x0, [x19, #8]
	mov	x0, x20
	mov	x1, x21
	bl	_nand_readreg
	str	x0, [x19]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BRCMNAND_CS_CFG,4,2            ; @BRCMNAND_CS_CFG
	.comm	_BRCMNAND_CS_CFG_EXT,4,2        ; @BRCMNAND_CS_CFG_EXT
	.comm	_BRCMNAND_CS_ACC_CONTROL,4,2    ; @BRCMNAND_CS_ACC_CONTROL
	.comm	_BRCMNAND_CS_TIMING1,4,2        ; @BRCMNAND_CS_TIMING1
	.comm	_BRCMNAND_CS_TIMING2,4,2        ; @BRCMNAND_CS_TIMING2
	.no_dead_strip	_brcmnand_save_restore_cs_config
.subsections_via_symbols
