	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atmel_hsmc_nand_controller_probe
_atmel_hsmc_nand_controller_probe:      ## @atmel_hsmc_nand_controller_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$8, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	%rax, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_atmel_nand_controller_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.3:
	cmpq	$0, (%r12)
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	_atmel_hsmc_nand_controller_legacy_init
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_5:
	movq	%r14, %rdi
	callq	_atmel_hsmc_nand_controller_init
LBB0_6:
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.7:
	movl	(%r14), %edi
	movq	_ATMEL_HSMC_NFC_IDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$-1, %edx
	callq	_regmap_write
	movl	4(%r14), %esi
	movq	_atmel_nfc_interrupt@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %r8
	movq	%r15, %rdi
	movq	%r14, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	je	LBB0_10
## %bb.8:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_9
LBB0_10:
	movl	(%r14), %edi
	movq	_ATMEL_HSMC_NFC_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ATMEL_HSMC_NFC_CFG_DTO_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_regmap_write
	movq	%r14, %rdi
	callq	_atmel_nand_controller_add_nands
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_11
LBB0_9:
	movq	%r14, %rdi
	callq	_atmel_hsmc_nand_controller_remove
LBB0_12:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	xorl	%ebx, %ebx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ATMEL_HSMC_NFC_IDR,4,2         ## @ATMEL_HSMC_NFC_IDR
	.comm	_atmel_nfc_interrupt,4,2        ## @atmel_nfc_interrupt
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"nfc"

L_.str.1:                               ## @.str.1
	.asciz	"Could not get register NFC interrupt handler (err = %d)\n"

	.comm	_ATMEL_HSMC_NFC_CFG,4,2         ## @ATMEL_HSMC_NFC_CFG
	.comm	_ATMEL_HSMC_NFC_CFG_DTO_MAX,4,2 ## @ATMEL_HSMC_NFC_CFG_DTO_MAX
	.no_dead_strip	_atmel_hsmc_nand_controller_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atmel_hsmc_nand_controller_probe
_atmel_hsmc_nand_controller_probe:      ; @atmel_hsmc_nand_controller_probe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #8
	bl	_devm_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	mov	x1, x20
	mov	x2, x22
	bl	_atmel_nand_controller_init
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.2:
	ldr	x8, [x22]
	cbz	x8, LBB0_6
; %bb.3:
	mov	x0, x19
	bl	_atmel_hsmc_nand_controller_legacy_init
	mov	x21, x0
	cbnz	w0, LBB0_5
	b	LBB0_7
LBB0_4:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_5:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	x0, x19
	bl	_atmel_hsmc_nand_controller_init
	mov	x21, x0
	cbnz	w0, LBB0_5
LBB0_7:
	ldr	w0, [x19]
Lloh6:
	adrp	x8, _ATMEL_HSMC_NFC_IDR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ATMEL_HSMC_NFC_IDR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w2, #-1
	bl	_regmap_write
	ldr	w1, [x19, #4]
Lloh9:
	adrp	x8, _atmel_nfc_interrupt@GOTPAGE
Lloh10:
	ldr	x8, [x8, _atmel_nfc_interrupt@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
Lloh12:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
Lloh15:
	adrp	x4, l_.str@PAGE
Lloh16:
	add	x4, x4, l_.str@PAGEOFF
	mov	x0, x20
	mov	x5, x19
	bl	_devm_request_irq
	cbz	w0, LBB0_9
; %bb.8:
	mov	x21, x0
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_dev_err
	b	LBB0_10
LBB0_9:
	ldr	w0, [x19]
Lloh19:
	adrp	x8, _ATMEL_HSMC_NFC_CFG@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ATMEL_HSMC_NFC_CFG@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x8, _ATMEL_HSMC_NFC_CFG_DTO_MAX@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ATMEL_HSMC_NFC_CFG_DTO_MAX@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	bl	_regmap_write
	mov	x0, x19
	bl	_atmel_nand_controller_add_nands
	mov	x21, x0
	cbz	w0, LBB0_5
LBB0_10:
	mov	x0, x19
	bl	_atmel_hsmc_nand_controller_remove
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ATMEL_HSMC_NFC_IDR,4,2         ; @ATMEL_HSMC_NFC_IDR
	.comm	_atmel_nfc_interrupt,4,2        ; @atmel_nfc_interrupt
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nfc"

l_.str.1:                               ; @.str.1
	.asciz	"Could not get register NFC interrupt handler (err = %d)\n"

	.comm	_ATMEL_HSMC_NFC_CFG,4,2         ; @ATMEL_HSMC_NFC_CFG
	.comm	_ATMEL_HSMC_NFC_CFG_DTO_MAX,4,2 ; @ATMEL_HSMC_NFC_CFG_DTO_MAX
	.no_dead_strip	_atmel_hsmc_nand_controller_probe
.subsections_via_symbols
