	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar934x_nfc_send_readid
_ar934x_nfc_send_readid:                ## @ar934x_nfc_send_readid
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	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
	movq	_AR934X_NFC_CMD_SEQ_1C1AXR@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_AR934X_NFC_ID_BUF_SIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	movl	4(%r14), %r9d
	movl	$0, (%rsp)
	movq	%r14, %rdi
	movl	$-1, %esi
	movl	$-1, %edx
	movl	%ebx, %r8d
	callq	_ar934x_nfc_do_rw_command
	movl	%eax, %ebx
	movl	(%r14), %esi
	movl	(%r15), %edx
	leaq	L_.str.1(%rip), %rdi
	callq	_nfc_debug_data
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"readid, cmd:%02x\n"

	.comm	_AR934X_NFC_CMD_SEQ_1C1AXR,4,2  ## @AR934X_NFC_CMD_SEQ_1C1AXR
	.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_ID_BUF_SIZE,4,2     ## @AR934X_NFC_ID_BUF_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"[id] "

	.no_dead_strip	_ar934x_nfc_send_readid
.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_readid
_ar934x_nfc_send_readid:                ; @ar934x_nfc_send_readid
	.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
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_nfc_dbg
Lloh2:
	adrp	x8, _AR934X_NFC_CMD_SEQ_1C1AXR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AR934X_NFC_CMD_SEQ_1C1AXR@GOTPAGEOFF]
Lloh4:
	adrp	x9, _AR934X_NFC_CMD_CMD0_M@GOTPAGE
Lloh5:
	ldr	x9, [x9, _AR934X_NFC_CMD_CMD0_M@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	ldr	w9, [x9]
	and	w9, w9, w19
Lloh8:
	adrp	x10, _AR934X_NFC_CMD_CMD0_S@GOTPAGE
Lloh9:
	ldr	x10, [x10, _AR934X_NFC_CMD_CMD0_S@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w4, w9, w8
Lloh11:
	adrp	x21, _AR934X_NFC_ID_BUF_SIZE@GOTPAGE
Lloh12:
	ldr	x21, [x21, _AR934X_NFC_ID_BUF_SIZE@GOTPAGEOFF]
	ldr	w3, [x21]
	ldr	w5, [x20, #4]
	mov	x0, x20
	mov	w1, #-1
	mov	w2, #-1
	mov	w6, #0
	bl	_ar934x_nfc_do_rw_command
	mov	x19, x0
	ldr	w1, [x20]
	ldr	w2, [x21]
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_nfc_debug_data
	mov	x0, x19
	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
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"readid, cmd:%02x\n"

	.comm	_AR934X_NFC_CMD_SEQ_1C1AXR,4,2  ; @AR934X_NFC_CMD_SEQ_1C1AXR
	.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_ID_BUF_SIZE,4,2     ; @AR934X_NFC_ID_BUF_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"[id] "

	.no_dead_strip	_ar934x_nfc_send_readid
.subsections_via_symbols
