	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function marvell_nfc_xfer_data_in_pio
_marvell_nfc_xfer_data_in_pio:          ## @marvell_nfc_xfer_data_in_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ecx
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_FIFO_DEPTH@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	xorl	%r15d, %r15d
	movl	%edx, %eax
	xorl	%edx, %edx
	divl	%esi
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	movl	%ecx, %edi
	callq	_round_down
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	(%rbx), %edi
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_NDDB@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	addq	(%r12), %rbx
	movslq	%r15d, %r15
	leaq	(%r14,%r15,4), %r12
	callq	_FIFO_REP
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	_FIFO_DEPTH@GOTPCREL(%rip), %rbx
	movl	%eax, %edx
	callq	_ioread32_rep
	movl	(%rbx), %edi
	addl	%edi, %r15d
	cmpl	%r13d, %r15d
	jb	LBB0_2
LBB0_3:
	movl	-56(%rbp), %r15d                ## 4-byte Reload
	testl	%r15d, %r15d
	je	LBB0_5
## %bb.4:
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movl	%r13d, -52(%rbp)                ## 4-byte Spill
	movl	(%rbx), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%r12, %rcx
	movq	%r14, %r12
	movq	%rsp, %r14
	movq	_NDDB@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	addq	(%rcx), %r13
	movl	(%rbx), %edi
	callq	_FIFO_REP
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_ioread32_rep
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	leaq	(%r12,%rax,4), %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_memcpy
	movq	-64(%rbp), %rsp                 ## 8-byte Reload
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	xorl	%eax, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_FIFO_DEPTH,4,2                 ## @FIFO_DEPTH
	.comm	_NDDB,8,3                       ## @NDDB
	.no_dead_strip	_marvell_nfc_xfer_data_in_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_in_pio
_marvell_nfc_xfer_data_in_pio:          ; @marvell_nfc_xfer_data_in_pio
	.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
	sub	sp, sp, #16
	mov	x19, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x25, _FIFO_DEPTH@GOTPAGE
Lloh4:
	ldr	x25, [x25, _FIFO_DEPTH@GOTPAGEOFF]
	ldr	w1, [x25]
	udiv	w8, w2, w1
	msub	w20, w8, w1, w2
	mov	x0, x2
	bl	_round_down
	mov	x21, x0
Lloh5:
	adrp	x26, _NDDB@GOTPAGE
Lloh6:
	ldr	x26, [x26, _NDDB@GOTPAGEOFF]
	cbz	w0, LBB0_3
; %bb.1:
	mov	w27, #0
	ldr	w0, [x25]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldr	x9, [x26]
	add	x23, x9, x8
	add	x24, x19, w27, sxtw #2
	bl	_FIFO_REP
	mov	x2, x0
	mov	x0, x23
	mov	x1, x24
	bl	_ioread32_rep
	ldr	w0, [x25]
	add	w27, w0, w27
	cmp	w27, w21
	b.lo	LBB0_2
LBB0_3:
	cbz	w20, LBB0_5
; %bb.4:
	mov	x24, sp
	ldr	w8, [x25]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x23, x9, x8
	mov	sp, x23
	ldr	x8, [x22]
	ldr	x9, [x26]
	add	x22, x9, x8
	ldr	w0, [x25]
	bl	_FIFO_REP
	mov	x2, x0
	mov	x0, x22
	mov	x1, x23
	bl	_ioread32_rep
	add	x0, x19, w21, uxtw #2
	mov	x1, x23
	mov	x2, x20
	bl	_memcpy
	mov	sp, x24
LBB0_5:
	ldur	x8, [x29, #-88]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	mov	w0, #0
	sub	sp, x29, #80
	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
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_FIFO_DEPTH,4,2                 ; @FIFO_DEPTH
	.comm	_NDDB,8,3                       ; @NDDB
	.no_dead_strip	_marvell_nfc_xfer_data_in_pio
.subsections_via_symbols
