	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtk_nfc_hw_init
_mtk_nfc_hw_init:                       ## @mtk_nfc_hw_init
	.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_CNRNB@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$241, %esi
	callq	_nfi_writew
	movq	_PAGEFMT_8K_16K@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_NFI_PAGEFMT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_nfi_writel
	movq	%rbx, %rdi
	callq	_mtk_nfc_hw_reset
	movq	_NFI_INTR_STA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_nfi_readl
	movq	_NFI_INTR_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_nfi_writel                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NFI_CNRNB,4,2                  ## @NFI_CNRNB
	.comm	_PAGEFMT_8K_16K,4,2             ## @PAGEFMT_8K_16K
	.comm	_NFI_PAGEFMT,4,2                ## @NFI_PAGEFMT
	.comm	_NFI_INTR_STA,4,2               ## @NFI_INTR_STA
	.comm	_NFI_INTR_EN,4,2                ## @NFI_INTR_EN
	.no_dead_strip	_mtk_nfc_hw_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtk_nfc_hw_init
_mtk_nfc_hw_init:                       ; @mtk_nfc_hw_init
	.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_CNRNB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NFI_CNRNB@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #241
	bl	_nfi_writew
Lloh3:
	adrp	x8, _PAGEFMT_8K_16K@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PAGEFMT_8K_16K@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _NFI_PAGEFMT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NFI_PAGEFMT@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_nfi_writel
	mov	x0, x19
	bl	_mtk_nfc_hw_reset
Lloh9:
	adrp	x8, _NFI_INTR_STA@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NFI_INTR_STA@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_nfi_readl
Lloh12:
	adrp	x8, _NFI_INTR_EN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _NFI_INTR_EN@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_nfi_writel
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NFI_CNRNB,4,2                  ; @NFI_CNRNB
	.comm	_PAGEFMT_8K_16K,4,2             ; @PAGEFMT_8K_16K
	.comm	_NFI_PAGEFMT,4,2                ; @NFI_PAGEFMT
	.comm	_NFI_INTR_STA,4,2               ; @NFI_INTR_STA
	.comm	_NFI_INTR_EN,4,2                ; @NFI_INTR_EN
	.no_dead_strip	_mtk_nfc_hw_init
.subsections_via_symbols
