	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function marvell_nfc_send_cmd
_marvell_nfc_send_cmd:                  ## @marvell_nfc_send_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_to_marvell_nand
	movq	%rax, %r15
	movl	(%rbx), %edi
	callq	_to_marvell_nfc
	movq	%rax, %rbx
	movl	16(%rax), %r12d
	movq	_NDCR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%rbx), %rdi
	callq	_readl_relaxed
	movq	(%r14), %rdx
	movl	(%rdx), %ecx
	movl	4(%rdx), %r8d
	movl	8(%rdx), %r9d
	movl	12(%rdx), %edx
	movl	%edx, (%rsp)
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edi
	movl	%eax, %edx
	callq	_dev_dbg
	movq	%r15, %rdi
	callq	_to_nand_sel
	movq	(%r14), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_NDCB0@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	addq	(%rbx), %rsi
	callq	_writel_relaxed
	movq	(%r14), %rax
	movl	4(%rax), %edi
	movq	(%r15), %rsi
	addq	(%rbx), %rsi
	callq	_writel_relaxed
	movq	(%r14), %rax
	movl	8(%rax), %edi
	movq	(%r15), %rsi
	addq	(%rbx), %rsi
	callq	_writel
	movq	(%r14), %rax
	movl	(%rax), %edi
	movq	_NDCB0_LEN_OVRD@GOTPCREL(%rip), %rax
	testl	%edi, (%rax)
	jne	LBB0_2
## %bb.1:
	callq	_NDCB0_ADDR_GET_NUM_CYC
	cmpl	$6, %eax
	jl	LBB0_3
LBB0_2:
	movq	8(%rbx), %rax
	xorl	%edi, %edi
	cmpl	$0, (%rax)
	sete	%dil
	callq	_WARN_ON_ONCE
	testl	%eax, %eax
	je	LBB0_4
LBB0_3:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	(%r14), %rax
	movl	12(%rax), %edi
	movq	(%r15), %rsi
	addq	(%rbx), %rsi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\nNDCR:  0x%08x\nNDCB0: 0x%08x\nNDCB1: 0x%08x\nNDCB2: 0x%08x\nNDCB3: 0x%08x\n"

	.comm	_NDCR,8,3                       ## @NDCR
	.comm	_NDCB0,8,3                      ## @NDCB0
	.comm	_NDCB0_LEN_OVRD,4,2             ## @NDCB0_LEN_OVRD
	.no_dead_strip	_marvell_nfc_send_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function marvell_nfc_send_cmd
_marvell_nfc_send_cmd:                  ; @marvell_nfc_send_cmd
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x1
	mov	x20, x0
	bl	_to_marvell_nand
	mov	x21, x0
	ldr	w0, [x20]
	bl	_to_marvell_nfc
	mov	x20, x0
	ldr	w22, [x0, #16]
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _NDCR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NDCR@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl_relaxed
	mov	x2, x0
	ldr	x8, [x19]
	ldp	w3, w4, [x8]
	ldp	w5, w6, [x8, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_dev_dbg
	mov	x0, x21
	bl	_to_nand_sel
	ldr	w8, [x0]
	ldr	x9, [x19]
	ldr	w9, [x9]
	orr	w0, w9, w8
	ldr	x8, [x20]
Lloh5:
	adrp	x21, _NDCB0@GOTPAGE
Lloh6:
	ldr	x21, [x21, _NDCB0@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x1, x9, x8
	bl	_writel_relaxed
	ldr	x8, [x19]
	ldr	w0, [x8, #4]
	ldr	x8, [x20]
	ldr	x9, [x21]
	add	x1, x9, x8
	bl	_writel_relaxed
	ldr	x8, [x19]
	ldr	w0, [x8, #8]
	ldr	x8, [x20]
	ldr	x9, [x21]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19]
	ldr	w0, [x8]
Lloh7:
	adrp	x8, _NDCB0_LEN_OVRD@GOTPAGE
Lloh8:
	ldr	x8, [x8, _NDCB0_LEN_OVRD@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_2
; %bb.1:
	bl	_NDCB0_ADDR_GET_NUM_CYC
	cmp	w0, #6
	b.lt	LBB0_3
LBB0_2:
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
	cmp	w8, #0
	cset	w0, eq
	bl	_WARN_ON_ONCE
	cbz	w0, LBB0_4
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	x8, [x19]
	ldr	w0, [x8, #12]
	ldr	x8, [x20]
	ldr	x9, [x21]
	add	x1, x9, x8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_writel
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\nNDCR:  0x%08x\nNDCB0: 0x%08x\nNDCB1: 0x%08x\nNDCB2: 0x%08x\nNDCB3: 0x%08x\n"

	.comm	_NDCR,8,3                       ; @NDCR
	.comm	_NDCB0,8,3                      ; @NDCB0
	.comm	_NDCB0_LEN_OVRD,4,2             ; @NDCB0_LEN_OVRD
	.no_dead_strip	_marvell_nfc_send_cmd
.subsections_via_symbols
