	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function marvell_nfc_init
_marvell_nfc_init:                      ## @marvell_nfc_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_3
## %bb.1:
	movq	8(%rbx), %rax
	movq	(%rax), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_syscon_regmap_lookup_by_phandle
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.6:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_2:
	movq	_GENCONF_SOC_DEVICE_MUX_NFC_EN@GOTPCREL(%rip), %rax
	movq	_GENCONF_SOC_DEVICE_MUX_ECC_CLK_RST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_GENCONF_SOC_DEVICE_MUX@GOTPCREL(%rip), %rax
	movq	_GENCONF_SOC_DEVICE_MUX_ECC_CORE_RST@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	(%rax), %esi
	movq	_GENCONF_SOC_DEVICE_MUX_NFC_INT_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%r14, %rdi
	callq	_regmap_write
	movq	_GENCONF_CLK_GATING_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GENCONF_CLK_GATING_CTRL_ND_GATE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movl	%ecx, %edx
	callq	_regmap_update_bits
	movq	_GENCONF_ND_CLK_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GENCONF_ND_CLK_CTRL_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movl	%ecx, %edx
	callq	_regmap_update_bits
	movq	(%rbx), %rax
LBB0_3:
	cmpl	$0, (%rax)
	jne	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_marvell_nfc_init_dma
LBB0_5:
	movq	%rbx, %rdi
	callq	_marvell_nfc_reset
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"marvell,system-controller"

	.comm	_GENCONF_SOC_DEVICE_MUX,4,2     ## @GENCONF_SOC_DEVICE_MUX
	.comm	_GENCONF_SOC_DEVICE_MUX_NFC_EN,4,2 ## @GENCONF_SOC_DEVICE_MUX_NFC_EN
	.comm	_GENCONF_SOC_DEVICE_MUX_ECC_CLK_RST,4,2 ## @GENCONF_SOC_DEVICE_MUX_ECC_CLK_RST
	.comm	_GENCONF_SOC_DEVICE_MUX_ECC_CORE_RST,4,2 ## @GENCONF_SOC_DEVICE_MUX_ECC_CORE_RST
	.comm	_GENCONF_SOC_DEVICE_MUX_NFC_INT_EN,4,2 ## @GENCONF_SOC_DEVICE_MUX_NFC_INT_EN
	.comm	_GENCONF_CLK_GATING_CTRL,4,2    ## @GENCONF_CLK_GATING_CTRL
	.comm	_GENCONF_CLK_GATING_CTRL_ND_GATE,4,2 ## @GENCONF_CLK_GATING_CTRL_ND_GATE
	.comm	_GENCONF_ND_CLK_CTRL,4,2        ## @GENCONF_ND_CLK_CTRL
	.comm	_GENCONF_ND_CLK_CTRL_EN,4,2     ## @GENCONF_ND_CLK_CTRL_EN
	.no_dead_strip	_marvell_nfc_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function marvell_nfc_init
_marvell_nfc_init:                      ; @marvell_nfc_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
	ldr	x8, [x0]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_4
; %bb.1:
	ldr	x8, [x19, #8]
	ldr	x0, [x8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_syscon_regmap_lookup_by_phandle
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_3:
Lloh2:
	adrp	x8, _GENCONF_SOC_DEVICE_MUX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GENCONF_SOC_DEVICE_MUX@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _GENCONF_SOC_DEVICE_MUX_NFC_EN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GENCONF_SOC_DEVICE_MUX_NFC_EN@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _GENCONF_SOC_DEVICE_MUX_ECC_CLK_RST@GOTPAGE
Lloh9:
	ldr	x9, [x9, _GENCONF_SOC_DEVICE_MUX_ECC_CLK_RST@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh11:
	adrp	x9, _GENCONF_SOC_DEVICE_MUX_ECC_CORE_RST@GOTPAGE
Lloh12:
	ldr	x9, [x9, _GENCONF_SOC_DEVICE_MUX_ECC_CORE_RST@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh14:
	adrp	x9, _GENCONF_SOC_DEVICE_MUX_NFC_INT_EN@GOTPAGE
Lloh15:
	ldr	x9, [x9, _GENCONF_SOC_DEVICE_MUX_NFC_INT_EN@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x20
	bl	_regmap_write
Lloh17:
	adrp	x8, _GENCONF_CLK_GATING_CTRL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _GENCONF_CLK_GATING_CTRL@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x8, _GENCONF_CLK_GATING_CTRL_ND_GATE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _GENCONF_CLK_GATING_CTRL_ND_GATE@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x3, x2
	bl	_regmap_update_bits
Lloh23:
	adrp	x8, _GENCONF_ND_CLK_CTRL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _GENCONF_ND_CLK_CTRL@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
Lloh26:
	adrp	x8, _GENCONF_ND_CLK_CTRL_EN@GOTPAGE
Lloh27:
	ldr	x8, [x8, _GENCONF_ND_CLK_CTRL_EN@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x3, x2
	bl	_regmap_update_bits
	ldr	x8, [x19]
LBB0_4:
	ldr	w8, [x8]
	cbnz	w8, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_marvell_nfc_init_dma
LBB0_6:
	mov	x0, x19
	bl	_marvell_nfc_reset
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"marvell,system-controller"

	.comm	_GENCONF_SOC_DEVICE_MUX,4,2     ; @GENCONF_SOC_DEVICE_MUX
	.comm	_GENCONF_SOC_DEVICE_MUX_NFC_EN,4,2 ; @GENCONF_SOC_DEVICE_MUX_NFC_EN
	.comm	_GENCONF_SOC_DEVICE_MUX_ECC_CLK_RST,4,2 ; @GENCONF_SOC_DEVICE_MUX_ECC_CLK_RST
	.comm	_GENCONF_SOC_DEVICE_MUX_ECC_CORE_RST,4,2 ; @GENCONF_SOC_DEVICE_MUX_ECC_CORE_RST
	.comm	_GENCONF_SOC_DEVICE_MUX_NFC_INT_EN,4,2 ; @GENCONF_SOC_DEVICE_MUX_NFC_INT_EN
	.comm	_GENCONF_CLK_GATING_CTRL,4,2    ; @GENCONF_CLK_GATING_CTRL
	.comm	_GENCONF_CLK_GATING_CTRL_ND_GATE,4,2 ; @GENCONF_CLK_GATING_CTRL_ND_GATE
	.comm	_GENCONF_ND_CLK_CTRL,4,2        ; @GENCONF_ND_CLK_CTRL
	.comm	_GENCONF_ND_CLK_CTRL_EN,4,2     ; @GENCONF_ND_CLK_CTRL_EN
	.no_dead_strip	_marvell_nfc_init
.subsections_via_symbols
