	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar934x_nfc_send_read
_ar934x_nfc_send_read:                  ## @ar934x_nfc_send_read
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r14d
	movl	%ecx, %r15d
	movl	%edx, %r12d
	movl	%esi, %ebx
	movq	%rdi, %r13
	leaq	L_.str(%rip), %rsi
	callq	_nfc_dbg
	movq	_AR934X_NFC_CMD_CMD0_M@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movq	_AR934X_NFC_CMD_CMD0_S@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %ebx
	cmpq	$0, 8(%r13)
	je	LBB0_2
## %bb.1:
	movq	_AR934X_NFC_CMD_SEQ_18@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_3
LBB0_2:
	movq	_NAND_CMD_READSTART@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_AR934X_NFC_CMD_CMD1_S@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	orl	%ebx, %eax
	movq	_AR934X_NFC_CMD_SEQ_1C5A1CXR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
LBB0_3:
	orl	%eax, %ebx
	movl	4(%r13), %r9d
	movl	$0, (%rsp)
	movq	%r13, %rdi
	movl	%r12d, %esi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	movl	%ebx, %r8d
	callq	_ar934x_nfc_do_rw_command
	movl	%eax, %ebx
	movl	(%r13), %esi
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %edx
	callq	_nfc_debug_data
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"read, column=%d page=%d len=%d\n"

	.comm	_AR934X_NFC_CMD_CMD0_M,4,2      ## @AR934X_NFC_CMD_CMD0_M
	.comm	_AR934X_NFC_CMD_CMD0_S,4,2      ## @AR934X_NFC_CMD_CMD0_S
	.comm	_AR934X_NFC_CMD_SEQ_18,4,2      ## @AR934X_NFC_CMD_SEQ_18
	.comm	_NAND_CMD_READSTART,4,2         ## @NAND_CMD_READSTART
	.comm	_AR934X_NFC_CMD_CMD1_S,4,2      ## @AR934X_NFC_CMD_CMD1_S
	.comm	_AR934X_NFC_CMD_SEQ_1C5A1CXR,4,2 ## @AR934X_NFC_CMD_SEQ_1C5A1CXR
L_.str.1:                               ## @.str.1
	.asciz	"[data] "

	.no_dead_strip	_ar934x_nfc_send_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ar934x_nfc_send_read
_ar934x_nfc_send_read:                  ; @ar934x_nfc_send_read
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_nfc_dbg
Lloh2:
	adrp	x8, _AR934X_NFC_CMD_CMD0_M@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AR934X_NFC_CMD_CMD0_M@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	and	w8, w8, w23
Lloh5:
	adrp	x9, _AR934X_NFC_CMD_CMD0_S@GOTPAGE
Lloh6:
	ldr	x9, [x9, _AR934X_NFC_CMD_CMD0_S@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	lsl	w8, w8, w9
	ldr	x9, [x20, #8]
	cbz	x9, LBB0_2
; %bb.1:
Lloh8:
	adrp	x9, _AR934X_NFC_CMD_SEQ_18@GOTPAGE
Lloh9:
	ldr	x9, [x9, _AR934X_NFC_CMD_SEQ_18@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	b	LBB0_3
LBB0_2:
Lloh11:
	adrp	x9, _NAND_CMD_READSTART@GOTPAGE
Lloh12:
	ldr	x9, [x9, _NAND_CMD_READSTART@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
Lloh14:
	adrp	x10, _AR934X_NFC_CMD_CMD1_S@GOTPAGE
Lloh15:
	ldr	x10, [x10, _AR934X_NFC_CMD_CMD1_S@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w9, w9, w8
Lloh17:
	adrp	x8, _AR934X_NFC_CMD_SEQ_1C5A1CXR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AR934X_NFC_CMD_SEQ_1C5A1CXR@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
LBB0_3:
	orr	w4, w9, w8
	ldr	w5, [x20, #4]
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	mov	x3, x19
	mov	w6, #0
	bl	_ar934x_nfc_do_rw_command
	mov	x21, x0
	ldr	w1, [x20]
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_nfc_debug_data
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"read, column=%d page=%d len=%d\n"

	.comm	_AR934X_NFC_CMD_CMD0_M,4,2      ; @AR934X_NFC_CMD_CMD0_M
	.comm	_AR934X_NFC_CMD_CMD0_S,4,2      ; @AR934X_NFC_CMD_CMD0_S
	.comm	_AR934X_NFC_CMD_SEQ_18,4,2      ; @AR934X_NFC_CMD_SEQ_18
	.comm	_NAND_CMD_READSTART,4,2         ; @NAND_CMD_READSTART
	.comm	_AR934X_NFC_CMD_CMD1_S,4,2      ; @AR934X_NFC_CMD_CMD1_S
	.comm	_AR934X_NFC_CMD_SEQ_1C5A1CXR,4,2 ; @AR934X_NFC_CMD_SEQ_1C5A1CXR
l_.str.1:                               ; @.str.1
	.asciz	"[data] "

	.no_dead_strip	_ar934x_nfc_send_read
.subsections_via_symbols
