	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function marvell_nfc_erase_cmd_type_exec
_marvell_nfc_erase_cmd_type_exec:       ## @marvell_nfc_erase_cmd_type_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	leaq	-32(%rbp), %rdx
	callq	_marvell_nfc_parse_instructions
	movq	_TYPE_ERASE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_NDCB0_CMD_TYPE
	movq	-16(%rbp), %rcx
	orl	%eax, (%rcx)
	movq	%rbx, %rdi
	callq	_marvell_nfc_prepare_cmd
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_marvell_nfc_send_cmd
	movq	%rbx, %rdi
	callq	_marvell_nfc_wait_cmdd
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	movl	-24(%rbp), %edi
	callq	_cond_delay
	movl	-28(%rbp), %esi
	movq	%rbx, %rdi
	callq	_marvell_nfc_wait_op
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movl	-32(%rbp), %edi
	callq	_cond_delay
	xorl	%eax, %eax
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TYPE_ERASE,4,2                 ## @TYPE_ERASE
	.no_dead_strip	_marvell_nfc_erase_cmd_type_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_erase_cmd_type_exec
_marvell_nfc_erase_cmd_type_exec:       ; @marvell_nfc_erase_cmd_type_exec
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
	add	x2, sp, #8
	bl	_marvell_nfc_parse_instructions
Lloh0:
	adrp	x8, _TYPE_ERASE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TYPE_ERASE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_NDCB0_CMD_TYPE
	ldr	x8, [sp, #24]
	ldr	w9, [x8]
	orr	w9, w9, w0
	str	w9, [x8]
	mov	x0, x19
	bl	_marvell_nfc_prepare_cmd
	cbnz	w0, LBB0_4
; %bb.1:
	add	x1, sp, #8
	mov	x0, x19
	bl	_marvell_nfc_send_cmd
	mov	x0, x19
	bl	_marvell_nfc_wait_cmdd
	cbnz	w0, LBB0_4
; %bb.2:
	ldr	w0, [sp, #16]
	bl	_cond_delay
	ldr	w1, [sp, #12]
	mov	x0, x19
	bl	_marvell_nfc_wait_op
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	w0, [sp, #8]
	bl	_cond_delay
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TYPE_ERASE,4,2                 ; @TYPE_ERASE
	.no_dead_strip	_marvell_nfc_erase_cmd_type_exec
.subsections_via_symbols
