	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atmel_smc_nand_controller_init
_atmel_smc_nand_controller_init:        ## @atmel_smc_nand_controller_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	%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	16(%rdi), %rax
	xorl	%r14d, %r14d
	cmpq	$0, 8(%rax)
	je	LBB0_1
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %rbx
	movq	24(%rdi), %r15
	movq	(%r15), %rcx
	movl	(%rcx), %edi
	movl	(%rax), %esi
	xorl	%r14d, %r14d
	xorl	%edx, %edx
	callq	_of_parse_phandle
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	%rax, %r12
	movq	_atmel_ebi_csa_regmap_of_ids@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_of_match_node
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r13
	movq	%r12, %rdi
	callq	_syscon_node_to_regmap
	movl	%eax, 8(%rbx)
	movq	%r12, %rdi
	callq	_of_node_put
	movl	8(%rbx), %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	8(%rbx), %edi
	callq	_PTR_ERR
	movl	%eax, %r14d
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_8
LBB0_3:
	movq	%r12, %rdi
	callq	_of_node_put
	jmp	LBB0_8
LBB0_6:
	movq	(%r13), %rax
	movq	%rax, (%rbx)
	movq	(%r15), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_of_device_is_compatible
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	(%rbx), %rax
	addl	$4, (%rax)
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_atmel_ebi_csa_regmap_of_ids,4,2 ## @atmel_ebi_csa_regmap_of_ids
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not get EBICSA regmap (err = %d)\n"

L_.str.1:                               ## @.str.1
	.asciz	"atmel,at91sam9263-ebi1"

	.no_dead_strip	_atmel_smc_nand_controller_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atmel_smc_nand_controller_init
_atmel_smc_nand_controller_init:        ; @atmel_smc_nand_controller_init
	.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
	ldr	x8, [x0, #16]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_3
LBB0_1:
	mov	w21, #0
LBB0_2:
	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_3:
	mov	x19, x0
	ldr	x20, [x0, #24]
	ldr	x9, [x20]
	ldr	w0, [x9]
	ldr	w1, [x8]
	mov	w2, #0
	bl	_of_parse_phandle
	mov	x21, x0
	cbz	x0, LBB0_2
; %bb.4:
Lloh0:
	adrp	x8, _atmel_ebi_csa_regmap_of_ids@GOTPAGE
Lloh1:
	ldr	x8, [x8, _atmel_ebi_csa_regmap_of_ids@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_of_match_node
	cbz	x0, LBB0_7
; %bb.5:
	mov	x22, x0
	mov	x0, x21
	bl	_syscon_node_to_regmap
	str	w0, [x19, #8]
	mov	x0, x21
	bl	_of_node_put
	ldr	w0, [x19, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.6:
	ldr	w0, [x19, #8]
	bl	_PTR_ERR
	mov	x21, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_dev_err
	b	LBB0_2
LBB0_7:
	mov	x0, x21
	bl	_of_node_put
	b	LBB0_1
LBB0_8:
	ldr	x8, [x22]
	str	x8, [x19]
	ldr	x8, [x20]
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_of_device_is_compatible
	mov	w21, #0
	cbz	x0, LBB0_2
; %bb.9:
	ldr	x8, [x19]
	ldr	w9, [x8]
	add	w9, w9, #4
	str	w9, [x8]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_atmel_ebi_csa_regmap_of_ids,4,2 ; @atmel_ebi_csa_regmap_of_ids
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not get EBICSA regmap (err = %d)\n"

l_.str.1:                               ; @.str.1
	.asciz	"atmel,at91sam9263-ebi1"

	.no_dead_strip	_atmel_smc_nand_controller_init
.subsections_via_symbols
