	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hisi_nfc_read_byte
_hisi_nfc_read_byte:                    ## @hisi_nfc_read_byte
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	callq	_nand_get_controller_data
	movq	(%rax), %rdx
	movq	_NAND_CMD_STATUS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	jne	LBB0_2
## %bb.1:
	movl	8(%rax), %ecx
	jmp	LBB0_5
LBB0_2:
	movl	12(%rax), %ecx
	leal	1(%rcx), %esi
	movl	%esi, 12(%rax)
	movq	_NAND_CMD_READID@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_4
## %bb.3:
	addl	8(%rax), %ecx
	jmp	LBB0_5
LBB0_4:
	addl	16(%rax), %ecx
LBB0_5:
	movslq	%ecx, %rax
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NAND_CMD_STATUS,8,3            ## @NAND_CMD_STATUS
	.comm	_NAND_CMD_READID,8,3            ## @NAND_CMD_READID
	.no_dead_strip	_hisi_nfc_read_byte
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hisi_nfc_read_byte
_hisi_nfc_read_byte:                    ; @hisi_nfc_read_byte
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	bl	_nand_get_controller_data
	ldr	x9, [x0]
Lloh0:
	adrp	x8, _NAND_CMD_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NAND_CMD_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [x0, #8]
	b	LBB0_6
LBB0_2:
	ldr	w8, [x0, #12]
	add	w10, w8, #1
	str	w10, [x0, #12]
Lloh3:
	adrp	x10, _NAND_CMD_READID@GOTPAGE
Lloh4:
	ldr	x10, [x10, _NAND_CMD_READID@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.3:
	ldr	w9, [x0, #8]
	b	LBB0_5
LBB0_4:
	ldr	w9, [x0, #16]
LBB0_5:
	add	w8, w9, w8
LBB0_6:
	sxtw	x8, w8
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NAND_CMD_STATUS,8,3            ; @NAND_CMD_STATUS
	.comm	_NAND_CMD_READID,8,3            ; @NAND_CMD_READID
	.no_dead_strip	_hisi_nfc_read_byte
.subsections_via_symbols
