	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hisi_spi_nor_op_reg
_hisi_spi_nor_op_reg:                   ## @hisi_spi_nor_op_reg
	.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
	movl	%ecx, %r14d
	movl	%edx, %r15d
	movq	(%rdi), %r12
	movq	8(%r12), %rbx
	movl	%esi, %edi
	callq	_FMC_CMD_CMD1
	movq	_FMC_CMD@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%rbx), %rsi
	movl	%eax, %edi
	callq	_writel
	movl	%r15d, %edi
	callq	_FMC_DATA_NUM_CNT
	movq	_FMC_DATA_NUM@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%rbx), %rsi
	movl	%eax, %edi
	callq	_writel
	movl	(%r12), %edi
	callq	_OP_CFG_FM_CS
	movq	_FMC_OP_CFG@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%rbx), %rsi
	movl	%eax, %edi
	callq	_writel
	movq	_FMC_INT_CLR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	movl	$255, %edi
	callq	_writel
	movq	_FMC_OP_CMD1_EN@GOTPCREL(%rip), %rax
	movq	_FMC_OP_REG_OP_START@GOTPCREL(%rip), %rcx
	orl	(%rax), %r14d
	orl	(%rcx), %r14d
	movq	_FMC_OP@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	movl	%r14d, %edi
	callq	_writel
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hisi_spi_nor_wait_op_finish    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FMC_CMD,8,3                    ## @FMC_CMD
	.comm	_FMC_DATA_NUM,8,3               ## @FMC_DATA_NUM
	.comm	_FMC_OP_CFG,8,3                 ## @FMC_OP_CFG
	.comm	_FMC_INT_CLR,8,3                ## @FMC_INT_CLR
	.comm	_FMC_OP_CMD1_EN,4,2             ## @FMC_OP_CMD1_EN
	.comm	_FMC_OP_REG_OP_START,4,2        ## @FMC_OP_REG_OP_START
	.comm	_FMC_OP,8,3                     ## @FMC_OP
	.no_dead_strip	_hisi_spi_nor_op_reg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hisi_spi_nor_op_reg
_hisi_spi_nor_op_reg:                   ; @hisi_spi_nor_op_reg
	.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	x20, x3
	mov	x21, x2
	ldr	x22, [x0]
	ldr	x19, [x22, #8]
	mov	x0, x1
	bl	_FMC_CMD_CMD1
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _FMC_CMD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FMC_CMD@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	mov	x0, x21
	bl	_FMC_DATA_NUM_CNT
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _FMC_DATA_NUM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FMC_DATA_NUM@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	w0, [x22]
	bl	_OP_CFG_FM_CS
	ldr	x8, [x19]
Lloh6:
	adrp	x9, _FMC_OP_CFG@GOTPAGE
Lloh7:
	ldr	x9, [x9, _FMC_OP_CFG@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19]
Lloh9:
	adrp	x9, _FMC_INT_CLR@GOTPAGE
Lloh10:
	ldr	x9, [x9, _FMC_INT_CLR@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #255
	bl	_writel
Lloh12:
	adrp	x8, _FMC_OP_CMD1_EN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FMC_OP_CMD1_EN@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _FMC_OP_REG_OP_START@GOTPAGE
Lloh16:
	ldr	x9, [x9, _FMC_OP_REG_OP_START@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w8, w20
	orr	w0, w8, w9
	ldr	x8, [x19]
Lloh18:
	adrp	x9, _FMC_OP@GOTPAGE
Lloh19:
	ldr	x9, [x9, _FMC_OP@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_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	_hisi_spi_nor_wait_op_finish
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.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	_FMC_CMD,8,3                    ; @FMC_CMD
	.comm	_FMC_DATA_NUM,8,3               ; @FMC_DATA_NUM
	.comm	_FMC_OP_CFG,8,3                 ; @FMC_OP_CFG
	.comm	_FMC_INT_CLR,8,3                ; @FMC_INT_CLR
	.comm	_FMC_OP_CMD1_EN,4,2             ; @FMC_OP_CMD1_EN
	.comm	_FMC_OP_REG_OP_START,4,2        ; @FMC_OP_REG_OP_START
	.comm	_FMC_OP,8,3                     ; @FMC_OP
	.no_dead_strip	_hisi_spi_nor_op_reg
.subsections_via_symbols
