	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vf610_nfc_cmd
_vf610_nfc_cmd:                         ## @vf610_nfc_cmd
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, -104(%rbp)                ## 8-byte Spill
	callq	_chip_to_nfc
	movq	%rax, %r12
	movl	$-1, -44(%rbp)
	leaq	-44(%rbp), %rsi
	movq	%r13, %rdi
	callq	_vf610_get_next_instr
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %r14
	movq	(%rax), %rax
	movq	_NAND_OP_CMD_INSTR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.2:
	movl	32(%r14), %edx
	movq	_CMD_BYTE1_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edx
	movl	%edx, -84(%rbp)                 ## 4-byte Spill
	movq	_COMMAND_CMD_BYTE1@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	-44(%rbp), %rsi
	movq	%r13, %rdi
	callq	_vf610_get_next_instr
	testq	%rax, %rax
	je	LBB0_29
## %bb.3:
	movq	%rax, %r14
	movq	(%rax), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_47
LBB0_5:
	xorl	%ebx, %ebx
	movl	$0, -84(%rbp)                   ## 4-byte Folded Spill
LBB0_6:
	movq	_NAND_OP_ADDR_INSTR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	jne	LBB0_13
## %bb.7:
	movl	-44(%rbp), %esi
	movq	%r13, %rdi
	callq	_nand_subop_get_num_addr_cyc
	movl	%eax, %r12d
	movl	-44(%rbp), %esi
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_nand_subop_get_addr_start_off
	xorl	%ecx, %ecx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movl	$0, %ebx
	movl	$0, -64(%rbp)                   ## 4-byte Folded Spill
	cmpl	%r12d, %eax
	jge	LBB0_14
## %bb.8:
	movslq	%eax, %r15
	movl	$0, -64(%rbp)                   ## 4-byte Folded Spill
	xorl	%ebx, %ebx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_11 Depth=1
	leal	-2(%r15), %edi
	callq	_ROW_ADDR
	orl	%eax, -64(%rbp)                 ## 4-byte Folded Spill
LBB0_10:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%r15
	cmpl	%r15d, %r12d
	je	LBB0_14
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	40(%r14), %rax
	movl	(%rax,%r15,4), %esi
	cmpq	$1, %r15
	jg	LBB0_9
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	%r15d, %edi
	callq	_COL_ADDR
	orl	%eax, %ebx
	jmp	LBB0_10
LBB0_13:
	movl	$0, -64(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_16
LBB0_14:
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movl	%r12d, %edi
	callq	_COMMAND_NADDR_BYTES
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	orl	%eax, %ebx
	leaq	-44(%rbp), %rsi
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_vf610_get_next_instr
	testq	%rax, %rax
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	je	LBB0_32
## %bb.15:
	movq	%rax, %r14
	movq	(%rax), %rax
LBB0_16:
	movq	_NAND_OP_DATA_OUT_INSTR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_19
## %bb.17:
	movl	-44(%rbp), %esi
	movq	%r13, %rdi
	callq	_nand_subop_get_data_len
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	-44(%rbp), %esi
	movq	%r13, %rdi
	callq	_nand_subop_get_data_start_off
                                        ## kill: def $eax killed $eax def $rax
	movl	8(%r14), %ecx
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movslq	%eax, %r15
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	movq	8(%r12), %rbx
	addq	%r15, %rbx
	xorl	%edi, %edi
	callq	_NFC_MAIN_AREA
	addq	%rax, %rbx
	addq	24(%r14), %r15
	xorl	%ecx, %ecx
	cmpl	$0, (%r12)
	sete	%cl
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	callq	_vf610_nfc_wr_to_sram
	movq	_COMMAND_WRITE_DATA@GOTPCREL(%rip), %rax
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	orl	(%rax), %r15d
	leaq	-44(%rbp), %rsi
	movq	%r13, %rdi
	callq	_vf610_get_next_instr
	testq	%rax, %rax
	je	LBB0_33
## %bb.18:
	movq	%rax, %r14
	movq	(%rax), %rax
	jmp	LBB0_20
LBB0_19:
	movl	$0, -60(%rbp)                   ## 4-byte Folded Spill
	xorl	%ecx, %ecx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
	movl	-48(%rbp), %r15d                ## 4-byte Reload
LBB0_20:
	movq	_NAND_OP_CMD_INSTR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_23
## %bb.21:
	movl	32(%r14), %r12d
	movq	_CMD_BYTE2_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r12d
	movq	_COMMAND_CMD_BYTE2@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	leaq	-44(%rbp), %rsi
	movq	%r13, %rdi
	callq	_vf610_get_next_instr
	testq	%rax, %rax
	je	LBB0_30
## %bb.22:
	movq	%rax, %r14
	movq	(%rax), %rax
	movq	%r12, %r9
	jmp	LBB0_24
LBB0_23:
	xorl	%r9d, %r9d
LBB0_24:
	movq	_NAND_OP_WAITRDY_INSTR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_27
## %bb.25:
	movq	%r9, %r12
	movq	_COMMAND_RB_HANDSHAKE@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	leaq	-44(%rbp), %rsi
	movq	%r13, %rdi
	callq	_vf610_get_next_instr
	testq	%rax, %rax
	je	LBB0_30
## %bb.26:
	movq	%rax, %r14
	movq	(%rax), %rax
	movq	%r12, %r9
LBB0_27:
	movq	_NAND_OP_DATA_IN_INSTR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_31
## %bb.28:
	movl	-44(%rbp), %esi
	movq	%r13, %rdi
	movq	%r9, %r12
	callq	_nand_subop_get_data_len
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	-44(%rbp), %esi
	movq	%r13, %rdi
	callq	_nand_subop_get_data_start_off
	movq	%r12, %r9
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	8(%r14), %ecx
	movq	_COMMAND_READ_DATA@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movl	%r15d, -48(%rbp)                ## 4-byte Spill
	xorl	%r15d, %r15d
	jmp	LBB0_35
LBB0_29:
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movb	$1, %al
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	xorl	%ebx, %ebx
	xorl	%r9d, %r9d
	movl	$0, -64(%rbp)                   ## 4-byte Folded Spill
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	movb	$1, %r15b
	jmp	LBB0_41
LBB0_30:
	movl	%r15d, -48(%rbp)                ## 4-byte Spill
	movb	$1, %r15b
	xorl	%r14d, %r14d
	movq	%r12, %r9
	jmp	LBB0_34
LBB0_31:
	movl	%r15d, -48(%rbp)                ## 4-byte Spill
	xorl	%r15d, %r15d
	jmp	LBB0_34
LBB0_32:
	movb	$1, %al
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	xorl	%ebx, %ebx
	xorl	%r9d, %r9d
	xorl	%r14d, %r14d
	movb	$1, %r15b
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	movl	-52(%rbp), %r13d                ## 4-byte Reload
	jmp	LBB0_41
LBB0_33:
	movl	%r15d, -48(%rbp)                ## 4-byte Spill
	movb	$1, %r15b
	xorl	%r14d, %r14d
	xorl	%r9d, %r9d
LBB0_34:
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
LBB0_35:
	movl	-52(%rbp), %r13d                ## 4-byte Reload
	testl	%ecx, %ecx
	je	LBB0_39
## %bb.36:
	movq	_NAND_BUSWIDTH_16@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	testl	%eax, (%rcx)
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_38
## %bb.37:
	movq	_NFC_FLASH_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CONFIG_16BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%r9, %rbx
	callq	_vf610_nfc_clear
	movq	%rbx, %r9
LBB0_38:
	movl	$0, -72(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_40
LBB0_39:
	movb	$1, %al
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movq	-96(%rbp), %r12                 ## 8-byte Reload
LBB0_40:
	movl	-56(%rbp), %ebx                 ## 4-byte Reload
LBB0_41:
	movq	_CMD_CODE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	shll	%cl, %r8d
	orl	-84(%rbp), %r8d                 ## 4-byte Folded Reload
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	-64(%rbp), %edx                 ## 4-byte Reload
	movl	%r9d, %ecx
	movl	%ebx, %r9d
	callq	_vf610_nfc_run
	testb	%r15b, %r15b
	jne	LBB0_44
## %bb.42:
	movq	(%r14), %rax
	movq	_NAND_OP_DATA_IN_INSTR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_44
## %bb.43:
	movl	%ebx, %r13d
	movslq	-80(%rbp), %rbx                 ## 4-byte Folded Reload
	movq	16(%r14), %r14
	addq	%rbx, %r14
	addq	8(%r12), %rbx
	xorl	%edi, %edi
	callq	_NFC_MAIN_AREA
	addq	%rax, %rbx
	xorl	%ecx, %ecx
	cmpl	$0, (%r12)
	sete	%cl
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%r13d, %edx
	callq	_vf610_nfc_rd_from_sram
LBB0_44:
	xorl	%ebx, %ebx
	cmpb	$0, -72(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_47
## %bb.45:
	movq	_NAND_BUSWIDTH_16@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	testl	%eax, (%rcx)
	je	LBB0_47
## %bb.46:
	movq	_NFC_FLASH_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CONFIG_16BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_vf610_nfc_set
LBB0_47:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NAND_OP_CMD_INSTR,8,3          ## @NAND_OP_CMD_INSTR
	.comm	_CMD_BYTE1_SHIFT,4,2            ## @CMD_BYTE1_SHIFT
	.comm	_COMMAND_CMD_BYTE1,4,2          ## @COMMAND_CMD_BYTE1
	.comm	_NAND_OP_ADDR_INSTR,8,3         ## @NAND_OP_ADDR_INSTR
	.comm	_NAND_OP_DATA_OUT_INSTR,8,3     ## @NAND_OP_DATA_OUT_INSTR
	.comm	_COMMAND_WRITE_DATA,4,2         ## @COMMAND_WRITE_DATA
	.comm	_CMD_BYTE2_SHIFT,4,2            ## @CMD_BYTE2_SHIFT
	.comm	_COMMAND_CMD_BYTE2,4,2          ## @COMMAND_CMD_BYTE2
	.comm	_NAND_OP_WAITRDY_INSTR,8,3      ## @NAND_OP_WAITRDY_INSTR
	.comm	_COMMAND_RB_HANDSHAKE,4,2       ## @COMMAND_RB_HANDSHAKE
	.comm	_NAND_OP_DATA_IN_INSTR,8,3      ## @NAND_OP_DATA_IN_INSTR
	.comm	_COMMAND_READ_DATA,4,2          ## @COMMAND_READ_DATA
	.comm	_NAND_BUSWIDTH_16,4,2           ## @NAND_BUSWIDTH_16
	.comm	_NFC_FLASH_CONFIG,4,2           ## @NFC_FLASH_CONFIG
	.comm	_CONFIG_16BIT,4,2               ## @CONFIG_16BIT
	.comm	_CMD_CODE_SHIFT,4,2             ## @CMD_CODE_SHIFT
	.no_dead_strip	_vf610_nfc_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vf610_nfc_cmd
_vf610_nfc_cmd:                         ; @vf610_nfc_cmd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x25, x1
	mov	x20, x0
	bl	_chip_to_nfc
	mov	x19, x0
	mov	w8, #-1
	str	w8, [sp, #28]
	add	x1, sp, #28
	mov	x0, x25
	bl	_vf610_get_next_instr
	cbz	x0, LBB0_4
; %bb.1:
	mov	x21, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x27, _NAND_OP_CMD_INSTR@GOTPAGE
Lloh1:
	ldr	x27, [x27, _NAND_OP_CMD_INSTR@GOTPAGEOFF]
	ldr	x9, [x27]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.2:
Lloh2:
	adrp	x8, _CMD_BYTE1_SHIFT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CMD_BYTE1_SHIFT@GOTPAGEOFF]
	ldr	w9, [x21, #32]
Lloh4:
	ldr	w8, [x8]
	lsl	w22, w9, w8
Lloh5:
	adrp	x8, _COMMAND_CMD_BYTE1@GOTPAGE
Lloh6:
	ldr	x8, [x8, _COMMAND_CMD_BYTE1@GOTPAGEOFF]
Lloh7:
	ldr	w28, [x8]
	add	x1, sp, #28
	mov	x0, x25
	bl	_vf610_get_next_instr
	mov	x21, x0
	cbz	x0, LBB0_31
; %bb.3:
	ldr	x8, [x21]
	b	LBB0_6
LBB0_4:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_46
LBB0_5:
	mov	w28, #0
	mov	w22, #0
LBB0_6:
Lloh11:
	adrp	x9, _NAND_OP_ADDR_INSTR@GOTPAGE
Lloh12:
	ldr	x9, [x9, _NAND_OP_ADDR_INSTR@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	str	w22, [sp, #24]                  ; 4-byte Folded Spill
	b.ne	LBB0_13
; %bb.7:
	ldr	w1, [sp, #28]
	mov	x0, x25
	bl	_nand_subop_get_num_addr_cyc
	mov	x24, x0
	ldr	w1, [sp, #28]
	mov	x0, x25
	bl	_nand_subop_get_addr_start_off
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w0, w24
	b.ge	LBB0_14
; %bb.8:
	mov	w22, #0
	mov	w23, #0
	sxtw	x26, w0
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	sub	w0, w26, #2
	bl	_ROW_ADDR
	orr	w22, w0, w22
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x26, x26, #1
	cmp	w24, w26
	b.eq	LBB0_15
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #40]
	ldr	w1, [x8, x26, lsl #2]
	cmp	x26, #1
	b.gt	LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x26
	bl	_COL_ADDR
	orr	w23, w0, w23
	b	LBB0_10
LBB0_13:
	mov	w22, #0
	mov	w23, #0
	b	LBB0_17
LBB0_14:
	mov	w23, #0
	mov	w22, #0
LBB0_15:
	mov	x0, x24
	bl	_COMMAND_NADDR_BYTES
	orr	w28, w0, w28
	add	x1, sp, #28
	mov	x0, x25
	bl	_vf610_get_next_instr
	mov	x21, x0
	cbz	x0, LBB0_37
; %bb.16:
	ldr	x8, [x21]
LBB0_17:
Lloh14:
	adrp	x9, _NAND_OP_DATA_OUT_INSTR@GOTPAGE
Lloh15:
	ldr	x9, [x9, _NAND_OP_DATA_OUT_INSTR@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_20
; %bb.18:
	str	x20, [sp, #8]                   ; 8-byte Folded Spill
	ldr	w1, [sp, #28]
	mov	x0, x25
	bl	_nand_subop_get_data_len
	mov	x24, x0
	ldr	w1, [sp, #28]
	mov	x0, x25
	bl	_nand_subop_get_data_start_off
	mov	x26, x0
	ldr	w20, [x21, #8]
	ldr	x27, [x19, #8]
	mov	w0, #0
	bl	_NFC_MAIN_AREA
	str	x26, [sp, #16]                  ; 8-byte Folded Spill
	sxtw	x8, w26
	add	x9, x27, x8
	add	x0, x9, x0
	ldr	x9, [x21, #24]
	add	x1, x9, x8
	ldr	w8, [x19]
	cmp	w8, #0
	cset	w3, eq
	mov	x2, x24
	bl	_vf610_nfc_wr_to_sram
Lloh17:
	adrp	x8, _COMMAND_WRITE_DATA@GOTPAGE
Lloh18:
	ldr	x8, [x8, _COMMAND_WRITE_DATA@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	orr	w28, w8, w28
	add	x1, sp, #28
	mov	x0, x25
	bl	_vf610_get_next_instr
	mov	x21, x0
	cbz	x0, LBB0_47
; %bb.19:
	ldr	x8, [x21]
Lloh20:
	adrp	x27, _NAND_OP_CMD_INSTR@GOTPAGE
Lloh21:
	ldr	x27, [x27, _NAND_OP_CMD_INSTR@GOTPAGEOFF]
	mov	x26, x20
	ldr	x20, [sp, #8]                   ; 8-byte Folded Reload
	b	LBB0_21
LBB0_20:
	mov	w26, #0
	str	xzr, [sp, #16]                  ; 8-byte Folded Spill
	mov	w24, #0
LBB0_21:
	ldr	x9, [x27]
	cmp	x8, x9
	b.ne	LBB0_24
; %bb.22:
	ldr	w8, [x21, #32]
Lloh22:
	adrp	x9, _CMD_BYTE2_SHIFT@GOTPAGE
Lloh23:
	ldr	x9, [x9, _CMD_BYTE2_SHIFT@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	lsl	w27, w8, w9
Lloh25:
	adrp	x8, _COMMAND_CMD_BYTE2@GOTPAGE
Lloh26:
	ldr	x8, [x8, _COMMAND_CMD_BYTE2@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	orr	w28, w8, w28
	add	x1, sp, #28
	mov	x0, x25
	bl	_vf610_get_next_instr
	mov	x21, x0
	cbz	x0, LBB0_32
; %bb.23:
	ldr	x8, [x21]
	b	LBB0_25
LBB0_24:
	mov	w27, #0
LBB0_25:
Lloh28:
	adrp	x9, _NAND_OP_WAITRDY_INSTR@GOTPAGE
Lloh29:
	ldr	x9, [x9, _NAND_OP_WAITRDY_INSTR@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_28
; %bb.26:
Lloh31:
	adrp	x8, _COMMAND_RB_HANDSHAKE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _COMMAND_RB_HANDSHAKE@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	orr	w28, w8, w28
	add	x1, sp, #28
	mov	x0, x25
	bl	_vf610_get_next_instr
	mov	x21, x0
	cbz	x0, LBB0_32
; %bb.27:
	ldr	x8, [x21]
LBB0_28:
Lloh34:
	adrp	x9, _NAND_OP_DATA_IN_INSTR@GOTPAGE
Lloh35:
	ldr	x9, [x9, _NAND_OP_DATA_IN_INSTR@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_33
; %bb.29:
	ldr	w1, [sp, #28]
	mov	x0, x25
	bl	_nand_subop_get_data_len
	mov	x24, x0
	ldr	w1, [sp, #28]
	mov	x0, x25
	bl	_nand_subop_get_data_start_off
	str	x0, [sp, #16]                   ; 8-byte Folded Spill
	mov	w25, #0
	ldr	w26, [x21, #8]
Lloh37:
	adrp	x8, _COMMAND_READ_DATA@GOTPAGE
Lloh38:
	ldr	x8, [x8, _COMMAND_READ_DATA@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	orr	w28, w8, w28
	cbnz	w26, LBB0_34
LBB0_30:
	mov	w26, #1
	b	LBB0_39
LBB0_31:
	str	w22, [sp, #24]                  ; 4-byte Folded Spill
	str	xzr, [sp, #16]                  ; 8-byte Folded Spill
	mov	w24, #0
	mov	w27, #0
	mov	w22, #0
	mov	w23, #0
	b	LBB0_38
LBB0_32:
	mov	w25, #1
	cbnz	w26, LBB0_34
	b	LBB0_30
LBB0_33:
	mov	w25, #0
	cbz	w26, LBB0_30
LBB0_34:
	ldr	w8, [x20]
Lloh40:
	adrp	x9, _NAND_BUSWIDTH_16@GOTPAGE
Lloh41:
	ldr	x9, [x9, _NAND_BUSWIDTH_16@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_36
; %bb.35:
Lloh43:
	adrp	x8, _NFC_FLASH_CONFIG@GOTPAGE
Lloh44:
	ldr	x8, [x8, _NFC_FLASH_CONFIG@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
Lloh46:
	adrp	x8, _CONFIG_16BIT@GOTPAGE
Lloh47:
	ldr	x8, [x8, _CONFIG_16BIT@GOTPAGEOFF]
Lloh48:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_vf610_nfc_clear
LBB0_36:
	mov	w26, #0
	b	LBB0_39
LBB0_37:
	str	xzr, [sp, #16]                  ; 8-byte Folded Spill
	mov	w24, #0
	mov	w27, #0
LBB0_38:
	mov	w26, #1
	mov	w25, #1
LBB0_39:
Lloh49:
	adrp	x8, _CMD_CODE_SHIFT@GOTPAGE
Lloh50:
	ldr	x8, [x8, _CMD_CODE_SHIFT@GOTPAGEOFF]
Lloh51:
	ldr	w8, [x8]
	lsl	w8, w28, w8
	ldr	w9, [sp, #24]                   ; 4-byte Folded Reload
	orr	w4, w8, w9
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	mov	x3, x27
	mov	x5, x24
	bl	_vf610_nfc_run
	tbnz	w25, #0, LBB0_42
; %bb.40:
	ldr	x8, [x21]
Lloh52:
	adrp	x9, _NAND_OP_DATA_IN_INSTR@GOTPAGE
Lloh53:
	ldr	x9, [x9, _NAND_OP_DATA_IN_INSTR@GOTPAGEOFF]
Lloh54:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_42
; %bb.41:
	ldr	x8, [x21, #16]
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
                                        ; kill: def $w9 killed $w9 killed $x9 def $x9
	sxtw	x22, w9
	add	x21, x8, x22
	ldr	x23, [x19, #8]
	mov	w0, #0
	bl	_NFC_MAIN_AREA
	add	x8, x23, x22
	add	x1, x8, x0
	ldr	w8, [x19]
	cmp	w8, #0
	cset	w3, eq
	mov	x0, x21
	mov	x2, x24
	bl	_vf610_nfc_rd_from_sram
LBB0_42:
	tbnz	w26, #0, LBB0_45
; %bb.43:
	ldr	w8, [x20]
Lloh55:
	adrp	x9, _NAND_BUSWIDTH_16@GOTPAGE
Lloh56:
	ldr	x9, [x9, _NAND_BUSWIDTH_16@GOTPAGEOFF]
Lloh57:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_45
; %bb.44:
Lloh58:
	adrp	x8, _NFC_FLASH_CONFIG@GOTPAGE
Lloh59:
	ldr	x8, [x8, _NFC_FLASH_CONFIG@GOTPAGEOFF]
Lloh60:
	ldr	w1, [x8]
Lloh61:
	adrp	x8, _CONFIG_16BIT@GOTPAGE
Lloh62:
	ldr	x8, [x8, _CONFIG_16BIT@GOTPAGEOFF]
Lloh63:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_vf610_nfc_set
LBB0_45:
	mov	w0, #0
LBB0_46:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_47:
	mov	w27, #0
	mov	w25, #1
	mov	x26, x20
	ldr	x20, [sp, #8]                   ; 8-byte Folded Reload
	cbnz	w26, LBB0_34
	b	LBB0_30
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NAND_OP_CMD_INSTR,8,3          ; @NAND_OP_CMD_INSTR
	.comm	_CMD_BYTE1_SHIFT,4,2            ; @CMD_BYTE1_SHIFT
	.comm	_COMMAND_CMD_BYTE1,4,2          ; @COMMAND_CMD_BYTE1
	.comm	_NAND_OP_ADDR_INSTR,8,3         ; @NAND_OP_ADDR_INSTR
	.comm	_NAND_OP_DATA_OUT_INSTR,8,3     ; @NAND_OP_DATA_OUT_INSTR
	.comm	_COMMAND_WRITE_DATA,4,2         ; @COMMAND_WRITE_DATA
	.comm	_CMD_BYTE2_SHIFT,4,2            ; @CMD_BYTE2_SHIFT
	.comm	_COMMAND_CMD_BYTE2,4,2          ; @COMMAND_CMD_BYTE2
	.comm	_NAND_OP_WAITRDY_INSTR,8,3      ; @NAND_OP_WAITRDY_INSTR
	.comm	_COMMAND_RB_HANDSHAKE,4,2       ; @COMMAND_RB_HANDSHAKE
	.comm	_NAND_OP_DATA_IN_INSTR,8,3      ; @NAND_OP_DATA_IN_INSTR
	.comm	_COMMAND_READ_DATA,4,2          ; @COMMAND_READ_DATA
	.comm	_NAND_BUSWIDTH_16,4,2           ; @NAND_BUSWIDTH_16
	.comm	_NFC_FLASH_CONFIG,4,2           ; @NFC_FLASH_CONFIG
	.comm	_CONFIG_16BIT,4,2               ; @CONFIG_16BIT
	.comm	_CMD_CODE_SHIFT,4,2             ; @CMD_CODE_SHIFT
	.no_dead_strip	_vf610_nfc_cmd
.subsections_via_symbols
