	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function marvell_nfc_probe
_marvell_nfc_probe:                     ## @marvell_nfc_probe
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$56, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%r14, 48(%rax)
	leaq	40(%rax), %rdi
	callq	_nand_controller_init
	movq	_marvell_nand_controller_ops@GOTPCREL(%rip), %rax
	movq	%rax, 40(%r12)
	movq	%r12, %rdi
	addq	$32, %rdi
	callq	_INIT_LIST_HEAD
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movq	%rax, 24(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	24(%r12), %rdi
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_28:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movq	%rax, %r13
	movq	%rax, (%r12)
	movq	_ENOENT@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_ERR_PTR
	cmpq	%r13, %rax
	je	LBB0_9
## %bb.8:
	movq	(%r12), %rdi
	jmp	LBB0_10
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movl	%r15d, %ebx
	jmp	LBB0_28
LBB0_9:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_devm_clk_get
	movq	%rax, %rdi
	movq	%rax, (%r12)
LBB0_10:
	callq	_IS_ERR
	movq	(%r12), %rdi
	testq	%rax, %rax
	jne	LBB0_4
## %bb.11:
	callq	_clk_prepare_enable
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_28
## %bb.12:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movq	%rax, 8(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	8(%r12), %rdi
	testq	%rax, %rax
	je	LBB0_17
## %bb.13:
	callq	_PTR_ERR
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	jne	LBB0_14
## %bb.16:
	movq	$0, 8(%r12)
	xorl	%edi, %edi
LBB0_17:
	callq	_clk_prepare_enable
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.18:
	movq	_NDCR_ALL_INT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_marvell_nfc_disable_int
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_marvell_nfc_clear_int
	movq	_marvell_nfc_isr@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.3(%rip), %r8
	movq	%r14, %rdi
	movl	%r15d, %esi
	xorl	%ecx, %ecx
	movq	%r12, %r9
	callq	_devm_request_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_19
LBB0_24:
	movq	8(%r12), %rdi
	callq	_clk_disable_unprepare
	jmp	LBB0_15
LBB0_14:
	movq	8(%r12), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
LBB0_15:
	movq	(%r12), %rdi
	callq	_clk_disable_unprepare
	jmp	LBB0_28
LBB0_19:
	movq	8(%r14), %rax
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:
	movq	(%rax), %rax
	jmp	LBB0_22
LBB0_21:
	movq	%r14, %rdi
	callq	_of_device_get_match_data
LBB0_22:
	movq	%rax, 16(%r12)
	testq	%rax, %rax
	je	LBB0_23
## %bb.25:
	movq	%r12, %rdi
	callq	_marvell_nfc_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_24
## %bb.26:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_platform_set_drvdata
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_marvell_nand_chips_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_24
## %bb.27:
	xorl	%ebx, %ebx
	jmp	LBB0_28
LBB0_23:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_marvell_nand_controller_ops,4,2 ## @marvell_nand_controller_ops
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to retrieve irq\n"

L_.str.1:                               ## @.str.1
	.asciz	"core"

	.comm	_ENOENT,4,2                     ## @ENOENT
L_.str.2:                               ## @.str.2
	.asciz	"reg"

	.comm	_NDCR_ALL_INT,4,2               ## @NDCR_ALL_INT
	.comm	_marvell_nfc_isr,4,2            ## @marvell_nfc_isr
L_.str.3:                               ## @.str.3
	.asciz	"marvell-nfc"

L_.str.4:                               ## @.str.4
	.asciz	"Could not retrieve NFC caps\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_marvell_nfc_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function marvell_nfc_probe
_marvell_nfc_probe:                     ; @marvell_nfc_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #56
	bl	_devm_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	str	x20, [x0, #48]
	add	x0, x0, #40
	bl	_nand_controller_init
Lloh3:
	adrp	x8, _marvell_nand_controller_ops@GOTPAGE
Lloh4:
	ldr	x8, [x8, _marvell_nand_controller_ops@GOTPAGEOFF]
	str	x8, [x19, #40]
	add	x0, x19, #32
	bl	_INIT_LIST_HEAD
Lloh5:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_platform_get_resource
	mov	x1, x0
	mov	x0, x20
	bl	_devm_ioremap_resource
	str	x0, [x19, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.2:
	ldr	x0, [x19, #24]
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_4:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_5:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	x0, x20
	mov	w1, #0
	bl	_platform_get_irq
	mov	x21, x0
	tbnz	w0, #31, LBB0_9
; %bb.7:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_devm_clk_get
	mov	x22, x0
	str	x0, [x19]
Lloh13:
	adrp	x23, _ENOENT@GOTPAGE
Lloh14:
	ldr	x23, [x23, _ENOENT@GOTPAGEOFF]
	ldr	w8, [x23]
	neg	w0, w8
	bl	_ERR_PTR
	cmp	x0, x22
	b.eq	LBB0_10
; %bb.8:
	ldr	x0, [x19]
	b	LBB0_11
LBB0_9:
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	mov	x22, x21
	b	LBB0_5
LBB0_10:
	mov	x0, x20
	mov	x1, #0
	bl	_devm_clk_get
	str	x0, [x19]
LBB0_11:
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x19]
	cbnz	x8, LBB0_3
; %bb.12:
	bl	_clk_prepare_enable
	mov	x22, x0
	cbnz	w0, LBB0_5
; %bb.13:
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_devm_clk_get
	str	x0, [x19, #8]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x19, #8]
	cbz	x8, LBB0_16
; %bb.14:
	bl	_PTR_ERR
	ldr	w8, [x23]
	cmn	w0, w8
	b.ne	LBB0_19
; %bb.15:
	mov	x0, #0
	str	xzr, [x19, #8]
LBB0_16:
	bl	_clk_prepare_enable
	mov	x22, x0
	cbnz	w0, LBB0_20
; %bb.17:
Lloh19:
	adrp	x22, _NDCR_ALL_INT@GOTPAGE
Lloh20:
	ldr	x22, [x22, _NDCR_ALL_INT@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_marvell_nfc_disable_int
	ldr	w1, [x22]
	mov	x0, x19
	bl	_marvell_nfc_clear_int
Lloh21:
	adrp	x8, _marvell_nfc_isr@GOTPAGE
Lloh22:
	ldr	x8, [x8, _marvell_nfc_isr@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
Lloh24:
	adrp	x4, l_.str.3@PAGE
Lloh25:
	add	x4, x4, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	mov	w3, #0
	mov	x5, x19
	bl	_devm_request_irq
	mov	x22, x0
	cbz	w0, LBB0_21
LBB0_18:
	ldr	x0, [x19, #8]
	bl	_clk_disable_unprepare
	b	LBB0_20
LBB0_19:
	ldr	x0, [x19, #8]
	bl	_PTR_ERR
	mov	x22, x0
LBB0_20:
	ldr	x0, [x19]
	bl	_clk_disable_unprepare
	b	LBB0_5
LBB0_21:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_23
; %bb.22:
	ldr	x0, [x8]
	b	LBB0_24
LBB0_23:
	mov	x0, x20
	bl	_of_device_get_match_data
LBB0_24:
	str	x0, [x19, #16]
	cbz	x0, LBB0_27
; %bb.25:
	mov	x0, x19
	bl	_marvell_nfc_init
	mov	x22, x0
	cbnz	w0, LBB0_18
; %bb.26:
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
	mov	x0, x20
	mov	x1, x19
	bl	_marvell_nand_chips_init
	mov	x22, x0
	cbnz	w0, LBB0_18
	b	LBB0_5
LBB0_27:
Lloh26:
	adrp	x1, l_.str.4@PAGE
Lloh27:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh28:
	adrp	x8, _EINVAL@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_18
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_marvell_nand_controller_ops,4,2 ; @marvell_nand_controller_ops
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to retrieve irq\n"

l_.str.1:                               ; @.str.1
	.asciz	"core"

	.comm	_ENOENT,4,2                     ; @ENOENT
l_.str.2:                               ; @.str.2
	.asciz	"reg"

	.comm	_NDCR_ALL_INT,4,2               ; @NDCR_ALL_INT
	.comm	_marvell_nfc_isr,4,2            ; @marvell_nfc_isr
l_.str.3:                               ; @.str.3
	.asciz	"marvell-nfc"

l_.str.4:                               ; @.str.4
	.asciz	"Could not retrieve NFC caps\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_marvell_nfc_probe
.subsections_via_symbols
