	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function marvell_nfc_naked_access_exec
_marvell_nfc_naked_access_exec:         ## @marvell_nfc_naked_access_exec
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	leaq	-40(%rbp), %rdx
	callq	_marvell_nfc_parse_instructions
	movq	_TYPE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_NDCB0_CMD_TYPE
	movl	%eax, %ebx
	movq	_XTYPE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_NDCB0_CMD_XTYPE
	orl	%ebx, %eax
	notl	%eax
	movq	-40(%rbp), %rcx
	andl	%eax, (%rcx)
	movq	(%r14), %rax
	movl	(%rax), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_9
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_6:
	movq	_TYPE_WRITE@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_TYPE_READ@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %edi
	callq	_NDCB0_CMD_TYPE
	movl	%eax, %ebx
	movq	_XTYPE_LAST_NAKED_RW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_NDCB0_CMD_XTYPE
	orl	%ebx, %eax
	movq	-40(%rbp), %rdx
	movl	(%rdx), %ecx
	jmp	LBB0_8
LBB0_2:
	movq	_TYPE_NAKED_CMD@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_4:
	movq	_TYPE_NAKED_ADDR@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %edi
	callq	_NDCB0_CMD_TYPE
	movl	%eax, %ecx
	movq	-40(%rbp), %rdx
	movl	(%rdx), %eax
LBB0_8:
	orl	%eax, %ecx
	movl	%ecx, (%rdx)
LBB0_9:
	movq	%r15, %rdi
	callq	_marvell_nfc_prepare_cmd
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_10
LBB0_16:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	leaq	-40(%rbp), %rsi
	movq	%r15, %rdi
	callq	_marvell_nfc_send_cmd
	cmpl	$0, -28(%rbp)
	je	LBB0_11
## %bb.12:
	movq	_NDSR_RDDREQ@GOTPCREL(%rip), %rax
	movq	_NDSR_WRDREQ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	callq	_marvell_nfc_end_cmd
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.13:
	leaq	-40(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_marvell_nfc_xfer_data_pio
	movq	%r15, %rdi
	callq	_marvell_nfc_wait_cmdd
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.14:
	movq	(%r14), %rax
	xorl	%ebx, %ebx
	cmpl	$128, (%rax)
	jne	LBB0_16
## %bb.15:
	movl	(%r15), %edi
	callq	_to_marvell_nfc
	movq	%rax, %r14
	movq	_NDCR@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	(%rax), %rdi
	callq	_readl
	movq	_NDCR_ND_RUN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	notl	%edi
	andl	%eax, %edi
	movq	(%r15), %rsi
	addq	(%r14), %rsi
	callq	_writel_relaxed
	jmp	LBB0_16
LBB0_11:
	movq	%r15, %rdi
	callq	_marvell_nfc_wait_cmdd
	movl	%eax, %ebx
	movl	-32(%rbp), %edi
	callq	_cond_delay
	jmp	LBB0_16
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_5
	.long	L0_0_set_2
	.long	L0_0_set_4
	.end_data_region
                                        ## -- End function
	.comm	_TYPE_MASK,4,2                  ## @TYPE_MASK
	.comm	_XTYPE_MASK,4,2                 ## @XTYPE_MASK
	.comm	_TYPE_NAKED_CMD,4,2             ## @TYPE_NAKED_CMD
	.comm	_TYPE_NAKED_ADDR,4,2            ## @TYPE_NAKED_ADDR
	.comm	_TYPE_READ,4,2                  ## @TYPE_READ
	.comm	_XTYPE_LAST_NAKED_RW,4,2        ## @XTYPE_LAST_NAKED_RW
	.comm	_TYPE_WRITE,4,2                 ## @TYPE_WRITE
	.comm	_NDSR_RDDREQ,4,2                ## @NDSR_RDDREQ
	.comm	_NDSR_WRDREQ,4,2                ## @NDSR_WRDREQ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RDDREQ/WRDREQ while draining raw data"

	.comm	_NDCR,8,3                       ## @NDCR
	.comm	_NDCR_ND_RUN,4,2                ## @NDCR_ND_RUN
	.no_dead_strip	_marvell_nfc_naked_access_exec
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function marvell_nfc_naked_access_exec
_marvell_nfc_naked_access_exec:         ; @marvell_nfc_naked_access_exec
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x1
	mov	x19, x0
	mov	x2, sp
	bl	_marvell_nfc_parse_instructions
Lloh0:
	adrp	x8, _TYPE_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TYPE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_NDCB0_CMD_TYPE
	mov	x21, x0
Lloh3:
	adrp	x8, _XTYPE_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _XTYPE_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_NDCB0_CMD_XTYPE
	orr	w8, w0, w21
	ldr	x9, [sp]
	ldr	w10, [x9]
	bic	w8, w10, w8
	str	w8, [x9]
	ldr	x8, [x20]
	ldr	w8, [x8]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_9
; %bb.1:
Lloh6:
	adrp	x9, lJTI0_0@PAGE
Lloh7:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh8:
	adrp	x8, _TYPE_WRITE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TYPE_WRITE@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh10:
	adrp	x8, _TYPE_READ@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TYPE_READ@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x8]
	bl	_NDCB0_CMD_TYPE
	mov	x21, x0
Lloh12:
	adrp	x8, _XTYPE_LAST_NAKED_RW@GOTPAGE
Lloh13:
	ldr	x8, [x8, _XTYPE_LAST_NAKED_RW@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_NDCB0_CMD_XTYPE
	orr	w9, w0, w21
	ldr	x8, [sp]
	ldr	w0, [x8]
	b	LBB0_8
LBB0_5:
Lloh15:
	adrp	x8, _TYPE_NAKED_CMD@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TYPE_NAKED_CMD@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh17:
	adrp	x8, _TYPE_NAKED_ADDR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _TYPE_NAKED_ADDR@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	bl	_NDCB0_CMD_TYPE
	ldr	x8, [sp]
	ldr	w9, [x8]
LBB0_8:
	orr	w9, w9, w0
	str	w9, [x8]
LBB0_9:
	mov	x0, x19
	bl	_marvell_nfc_prepare_cmd
	mov	x21, x0
	cbz	w0, LBB0_11
LBB0_10:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_11:
	mov	x1, sp
	mov	x0, x19
	bl	_marvell_nfc_send_cmd
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_17
; %bb.12:
Lloh19:
	adrp	x8, _NDSR_RDDREQ@GOTPAGE
Lloh20:
	ldr	x8, [x8, _NDSR_RDDREQ@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _NDSR_WRDREQ@GOTPAGE
Lloh23:
	ldr	x9, [x9, _NDSR_WRDREQ@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w1, w9, w8
Lloh25:
	adrp	x2, l_.str@PAGE
Lloh26:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_marvell_nfc_end_cmd
	mov	x21, x0
	cbnz	w0, LBB0_10
; %bb.13:
	mov	x2, sp
	mov	x0, x19
	mov	x1, x20
	bl	_marvell_nfc_xfer_data_pio
	mov	x0, x19
	bl	_marvell_nfc_wait_cmdd
	mov	x21, x0
	cbnz	w0, LBB0_10
; %bb.14:
	ldr	x8, [x20]
	ldr	w8, [x8]
	cmp	w8, #128
	b.ne	LBB0_16
; %bb.15:
	ldr	w0, [x19]
	bl	_to_marvell_nfc
	mov	x19, x0
	ldr	x8, [x0]
Lloh27:
	adrp	x20, _NDCR@GOTPAGE
Lloh28:
	ldr	x20, [x20, _NDCR@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl
Lloh29:
	adrp	x8, _NDCR_ND_RUN@GOTPAGE
Lloh30:
	ldr	x8, [x8, _NDCR_ND_RUN@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	bic	w0, w0, w8
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writel_relaxed
LBB0_16:
	mov	w21, #0
	b	LBB0_10
LBB0_17:
	mov	x0, x19
	bl	_marvell_nfc_wait_cmdd
	mov	x21, x0
	ldr	w0, [sp, #8]
	bl	_cond_delay
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh27, Lloh28
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
                                        ; -- End function
	.comm	_TYPE_MASK,4,2                  ; @TYPE_MASK
	.comm	_XTYPE_MASK,4,2                 ; @XTYPE_MASK
	.comm	_TYPE_NAKED_CMD,4,2             ; @TYPE_NAKED_CMD
	.comm	_TYPE_NAKED_ADDR,4,2            ; @TYPE_NAKED_ADDR
	.comm	_TYPE_READ,4,2                  ; @TYPE_READ
	.comm	_XTYPE_LAST_NAKED_RW,4,2        ; @XTYPE_LAST_NAKED_RW
	.comm	_TYPE_WRITE,4,2                 ; @TYPE_WRITE
	.comm	_NDSR_RDDREQ,4,2                ; @NDSR_RDDREQ
	.comm	_NDSR_WRDREQ,4,2                ; @NDSR_WRDREQ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RDDREQ/WRDREQ while draining raw data"

	.comm	_NDCR,8,3                       ; @NDCR
	.comm	_NDCR_ND_RUN,4,2                ; @NDCR_ND_RUN
	.no_dead_strip	_marvell_nfc_naked_access_exec
.subsections_via_symbols
