	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function marvell_nfc_xfer_data_pio
_marvell_nfc_xfer_data_pio:             ## @marvell_nfc_xfer_data_pio
	.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	%rdx, %rbx
	movq	%rsi, %r13
	movq	%rdi, %r12
	movl	(%rdi), %edi
	callq	_to_marvell_nfc
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %r14
	movl	(%rbx), %ebx
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_nand_subop_get_data_len
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_nand_subop_get_data_start_off
	movl	%eax, %r13d
	movq	(%r14), %rbx
	movq	_NAND_OP_DATA_IN_INSTR@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	cmpq	$0, 8(%r14)
	je	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_marvell_nfc_force_byte_access
LBB0_2:
	movl	%r13d, %esi
	shlq	$2, %rsi
	cmpq	%r15, %rbx
	jne	LBB0_4
## %bb.3:
	addq	24(%r14), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_marvell_nfc_xfer_data_in_pio
	jmp	LBB0_5
LBB0_4:
	addq	16(%r14), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_marvell_nfc_xfer_data_out_pio
LBB0_5:
	movl	%eax, %ebx
	cmpq	$0, 8(%r14)
	je	LBB0_7
## %bb.6:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_marvell_nfc_force_byte_access
LBB0_7:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NAND_OP_DATA_IN_INSTR,8,3      ## @NAND_OP_DATA_IN_INSTR
	.no_dead_strip	_marvell_nfc_xfer_data_pio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function marvell_nfc_xfer_data_pio
_marvell_nfc_xfer_data_pio:             ; @marvell_nfc_xfer_data_pio
	.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	x21, x2
	mov	x22, x1
	mov	x19, x0
	ldr	w0, [x0]
	bl	_to_marvell_nfc
	mov	x20, x0
	ldr	x24, [x21, #8]
	ldr	w23, [x21]
	mov	x0, x22
	mov	x1, x23
	bl	_nand_subop_get_data_len
	mov	x21, x0
	mov	x0, x22
	mov	x1, x23
	bl	_nand_subop_get_data_start_off
	mov	x22, x0
Lloh0:
	adrp	x8, _NAND_OP_DATA_IN_INSTR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NAND_OP_DATA_IN_INSTR@GOTPAGEOFF]
Lloh2:
	ldr	x23, [x8]
	ldp	x25, x8, [x24]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #1
	bl	_marvell_nfc_force_byte_access
LBB0_2:
	cmp	x25, x23
	b.ne	LBB0_4
; %bb.3:
	ldr	x8, [x24, #24]
	add	x1, x8, w22, uxtw #2
	mov	x0, x20
	mov	x2, x21
	bl	_marvell_nfc_xfer_data_in_pio
	b	LBB0_5
LBB0_4:
	ldr	x8, [x24, #16]
	add	x1, x8, w22, uxtw #2
	mov	x0, x20
	mov	x2, x21
	bl	_marvell_nfc_xfer_data_out_pio
LBB0_5:
	mov	x20, x0
	ldr	x8, [x24, #8]
	cbz	x8, LBB0_7
; %bb.6:
	mov	x0, x19
	mov	w1, #0
	bl	_marvell_nfc_force_byte_access
LBB0_7:
	mov	x0, x20
	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	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NAND_OP_DATA_IN_INSTR,8,3      ; @NAND_OP_DATA_IN_INSTR
	.no_dead_strip	_marvell_nfc_xfer_data_pio
.subsections_via_symbols
