	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxic_nfc_exec_op
_mxic_nfc_exec_op:                      ## @mxic_nfc_exec_op
	.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
	movq	%rsi, %r15
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_nand_get_controller_data
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_mxic_nfc_cs_enable
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	addq	$8, %rbx
	movq	%rbx, %rdi
	callq	_init_completion
	cmpl	$0, (%r15)
	je	LBB0_1
## %bb.2:
	xorl	%r12d, %r12d
	movl	$48, %r13d
	xorl	%ebx, %ebx
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_mxic_nfc_wait_ready
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %ebx
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r12
	movl	(%r15), %eax
	addq	$56, %r13
	cmpq	%rax, %r12
	jae	LBB0_14
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %r14
	movl	-48(%r14,%r13), %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_13
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	-40(%r14,%r13), %r15d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rbx
	xorl	%edi, %edi
	callq	_ONFI_DIN_CNT
	addq	%rax, %rbx
	movl	%r15d, %edi
	movq	%rbx, %rsi
	callq	_writel
	movq	_OP_BUSW_8@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_OP_DATA_BUSW
	movl	%eax, %r15d
	movl	$63, %edi
	callq	_OP_DUMMY_CYC
	orl	%eax, %r15d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rbx
	xorl	%edi, %edi
	callq	_SS_CTRL
	addq	%rax, %rbx
	movl	%r15d, %edi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_writel
	movq	-32(%r14,%r13), %rsi
	movl	-40(%r14,%r13), %ecx
	jmp	LBB0_7
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rbx
	xorl	%edi, %edi
	callq	_ONFI_DIN_CNT
	addq	%rax, %rbx
	xorl	%edi, %edi
	movq	%rbx, %rsi
	callq	_writel
	movq	_OP_BUSW_8@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_OP_DATA_BUSW
	movl	%eax, %ebx
	movl	$63, %edi
	callq	_OP_DUMMY_CYC
	orl	%eax, %ebx
	movq	_OP_READ@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r15
	xorl	%edi, %edi
	callq	_SS_CTRL
	addq	%rax, %r15
	movl	%ebx, %edi
	movq	%r15, %rsi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	callq	_writel
	movq	-24(%r14,%r13), %rdx
	movl	-40(%r14,%r13), %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_mxic_nfc_data_xfer
	jmp	LBB0_12
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_HC_EN@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	addq	(%rbx), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	_HC_EN_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r15), %rsi
	addq	(%rbx), %rsi
	callq	_writel
	movq	_OP_BUSW_8@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_OP_CMD_BUSW
	movl	%eax, %ebx
	movl	$63, %edi
	callq	_OP_DUMMY_CYC
	movl	%eax, %r15d
	xorl	%edi, %edi
	callq	_OP_CMD_BYTES
	orl	%eax, %r15d
	orl	%ebx, %r15d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rbx
	xorl	%edi, %edi
	callq	_SS_CTRL
	addq	%rax, %rbx
	movl	%r15d, %edi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_writel
	addq	%r13, %r14
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_mxic_nfc_data_xfer
	jmp	LBB0_12
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_OP_BUSW_8@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_OP_ADDR_BUSW
	movl	%eax, %ebx
	movl	$63, %edi
	callq	_OP_DUMMY_CYC
	orl	%eax, %ebx
	movl	-16(%r14,%r13), %edi
	callq	_OP_ADDR_BYTES
	orl	%eax, %ebx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r15
	xorl	%edi, %edi
	callq	_SS_CTRL
	addq	%rax, %r15
	movl	%ebx, %edi
	movq	%r15, %rsi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	callq	_writel
	movq	-8(%r14,%r13), %rsi
	movl	-16(%r14,%r13), %ecx
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_mxic_nfc_data_xfer
	jmp	LBB0_12
LBB0_1:
	xorl	%ebx, %ebx
LBB0_14:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mxic_nfc_cs_disable
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_11
	.long	L0_0_set_10
	.long	L0_0_set_9
	.long	L0_0_set_5
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.comm	_HC_EN,8,3                      ## @HC_EN
	.comm	_HC_EN_BIT,4,2                  ## @HC_EN_BIT
	.comm	_OP_BUSW_8,4,2                  ## @OP_BUSW_8
	.comm	_OP_READ,4,2                    ## @OP_READ
	.no_dead_strip	_mxic_nfc_exec_op
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxic_nfc_exec_op
_mxic_nfc_exec_op:                      ; @mxic_nfc_exec_op
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x21, x0
	bl	_nand_get_controller_data
	mov	x19, x0
	bl	_mxic_nfc_cs_enable
	add	x0, x19, #8
	bl	_init_completion
	ldr	w8, [x20]
	cbz	w8, LBB0_12
; %bb.1:
	mov	x23, #0
	mov	x24, #0
	mov	w22, #0
Lloh0:
	adrp	x25, _OP_BUSW_8@GOTPAGE
Lloh1:
	ldr	x25, [x25, _OP_BUSW_8@GOTPAGEOFF]
Lloh2:
	adrp	x26, lJTI0_0@PAGE
Lloh3:
	add	x26, x26, lJTI0_0@PAGEOFF
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	bl	_mxic_nfc_wait_ready
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x22, x0
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x24, x24, #1
	ldr	w8, [x20]
	add	x23, x23, #56
	cmp	x24, x8
	b.hs	LBB0_13
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x28, [x20, #8]
	ldr	w8, [x28, x23]
	sub	w8, w8, #128
	cmp	w8, #4
	b.hi	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	adr	x9, LBB0_2
	ldrb	w10, [x26, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x27, x28, x23
	ldr	w22, [x27, #8]
	ldr	x28, [x19]
	mov	w0, #0
	bl	_ONFI_DIN_CNT
	add	x1, x0, x28
	mov	x0, x22
	bl	_writel
	ldr	w0, [x25]
	bl	_OP_DATA_BUSW
	mov	x22, x0
	mov	w0, #63
	bl	_OP_DUMMY_CYC
	orr	w22, w0, w22
	ldr	x28, [x19]
	mov	w0, #0
	bl	_SS_CTRL
	add	x1, x0, x28
	mov	x0, x22
	bl	_writel
	ldr	x1, [x27, #16]
	ldr	w3, [x27, #8]
	b	LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x22, [x19]
	mov	w0, #0
	bl	_ONFI_DIN_CNT
	add	x1, x0, x22
	mov	w0, #0
	bl	_writel
	ldr	w0, [x25]
	bl	_OP_DATA_BUSW
	mov	x22, x0
	mov	w0, #63
	bl	_OP_DUMMY_CYC
	orr	w8, w0, w22
Lloh4:
	adrp	x9, _OP_READ@GOTPAGE
Lloh5:
	ldr	x9, [x9, _OP_READ@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	orr	w22, w8, w9
	ldr	x27, [x19]
	mov	w0, #0
	bl	_SS_CTRL
	add	x1, x0, x27
	mov	x0, x22
	bl	_writel
	add	x8, x28, x23
	ldr	x2, [x8, #24]
	ldr	w3, [x8, #8]
	mov	x0, x19
	mov	x1, #0
	bl	_mxic_nfc_data_xfer
	b	LBB0_3
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19]
Lloh7:
	adrp	x22, _HC_EN@GOTPAGE
Lloh8:
	ldr	x22, [x22, _HC_EN@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
Lloh9:
	adrp	x8, _HC_EN_BIT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HC_EN_BIT@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldr	x8, [x19]
	ldr	x9, [x22]
	add	x1, x9, x8
	bl	_writel
	ldr	w0, [x25]
	bl	_OP_CMD_BUSW
	mov	x22, x0
	mov	w0, #63
	bl	_OP_DUMMY_CYC
	orr	w22, w0, w22
	mov	w0, #0
	bl	_OP_CMD_BYTES
	orr	w22, w22, w0
	ldr	x27, [x19]
	mov	w0, #0
	bl	_SS_CTRL
	add	x1, x0, x27
	mov	x0, x22
	bl	_writel
	add	x8, x28, x23
	add	x1, x8, #48
	mov	x0, x19
	mov	x2, #0
	mov	w3, #1
	bl	_mxic_nfc_data_xfer
	b	LBB0_3
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x25]
	bl	_OP_ADDR_BUSW
	mov	x22, x0
	mov	w0, #63
	bl	_OP_DUMMY_CYC
	orr	w22, w0, w22
	add	x27, x28, x23
	ldr	w0, [x27, #32]
	bl	_OP_ADDR_BYTES
	orr	w22, w22, w0
	ldr	x28, [x19]
	mov	w0, #0
	bl	_SS_CTRL
	add	x1, x0, x28
	mov	x0, x22
	bl	_writel
	ldr	x1, [x27, #40]
	ldr	w3, [x27, #32]
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x2, #0
	bl	_mxic_nfc_data_xfer
	b	LBB0_3
LBB0_12:
	mov	w22, #0
LBB0_13:
	mov	x0, x19
	bl	_mxic_nfc_cs_disable
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
                                        ; -- End function
	.comm	_HC_EN,8,3                      ; @HC_EN
	.comm	_HC_EN_BIT,4,2                  ; @HC_EN_BIT
	.comm	_OP_BUSW_8,4,2                  ; @OP_BUSW_8
	.comm	_OP_READ,4,2                    ; @OP_READ
	.no_dead_strip	_mxic_nfc_exec_op
.subsections_via_symbols
