	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtk_nfc_wait_ioready
_mtk_nfc_wait_ioready:                  ## @mtk_nfc_wait_ioready
	.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
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_NFI_PIO_DIRDY@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%rbx), %rdi
	movq	_MTK_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorl	%edx, %edx
	movl	$10, %ecx
	callq	_readb_poll_timeout_atomic
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NFI_PIO_DIRDY,8,3              ## @NFI_PIO_DIRDY
	.comm	_PIO_DI_RDY,4,2                 ## @PIO_DI_RDY
	.comm	_MTK_TIMEOUT,4,2                ## @MTK_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"data not ready\n"

	.no_dead_strip	_mtk_nfc_wait_ioready
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtk_nfc_wait_ioready
_mtk_nfc_wait_ioready:                  ; @mtk_nfc_wait_ioready
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _NFI_PIO_DIRDY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NFI_PIO_DIRDY@GOTPAGEOFF]
	ldr	x9, [x0, #8]
Lloh2:
	ldr	x8, [x8]
	add	x0, x8, x9
Lloh3:
	adrp	x8, _MTK_TIMEOUT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MTK_TIMEOUT@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8]
	mov	w2, #0
	mov	w3, #10
	bl	_readb_poll_timeout_atomic
	tbnz	w0, #31, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	w0, [x19]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dev_err
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_NFI_PIO_DIRDY,8,3              ; @NFI_PIO_DIRDY
	.comm	_PIO_DI_RDY,4,2                 ; @PIO_DI_RDY
	.comm	_MTK_TIMEOUT,4,2                ; @MTK_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"data not ready\n"

	.no_dead_strip	_mtk_nfc_wait_ioready
.subsections_via_symbols
