	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_devm_atmel_pmecc_get           ## -- Begin function devm_atmel_pmecc_get
	.p2align	4, 0x90
_devm_atmel_pmecc_get:                  ## @devm_atmel_pmecc_get
	.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
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.1:
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	testl	%edi, %edi
	je	LBB0_9
## %bb.2:
	leaq	L_.str(%rip), %rsi
	xorl	%edx, %edx
	callq	_of_parse_phandle
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rax, %r14
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_atmel_pmecc_get_by_node
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_of_node_put
	movq	%rbx, %rax
	jmp	LBB0_10
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_4:
	movq	%rbx, %rdi
	callq	_to_platform_device
	movq	%rax, %r14
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_of_property_read_bool
	testl	%eax, %eax
	je	LBB0_9
## %bb.5:
	movq	_atmel_pmecc_legacy_match@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	callq	_of_match_node
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	(%rax), %rsi
	testq	%rsi, %rsi
	jne	LBB0_8
LBB0_7:
	movq	_at91sam9g45_caps@GOTPCREL(%rip), %rsi
LBB0_8:
	movq	%r14, %rdi
	movl	$1, %edx
	movl	$2, %ecx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_atmel_pmecc_create             ## TAILCALL
LBB0_9:
	xorl	%eax, %eax
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ecc-engine"

L_.str.1:                               ## @.str.1
	.asciz	"atmel,has-pmecc"

	.comm	_at91sam9g45_caps,4,2           ## @at91sam9g45_caps
	.comm	_atmel_pmecc_legacy_match,4,2   ## @atmel_pmecc_legacy_match
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_devm_atmel_pmecc_get           ; -- Begin function devm_atmel_pmecc_get
	.p2align	2
_devm_atmel_pmecc_get:                  ; @devm_atmel_pmecc_get
	.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
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	w0, [x0]
	cbz	w0, LBB0_9
; %bb.2:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #0
	bl	_of_parse_phandle
	cbz	x0, LBB0_5
; %bb.3:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_atmel_pmecc_get_by_node
	mov	x19, x0
	mov	x0, x20
	bl	_of_node_put
	mov	x0, x19
	b	LBB0_10
LBB0_4:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ERR_PTR
LBB0_5:
	mov	x0, x19
	bl	_to_platform_device
	mov	x20, x0
	ldr	w0, [x19]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_of_property_read_bool
	cbz	w0, LBB0_9
; %bb.6:
Lloh7:
	adrp	x8, _atmel_pmecc_legacy_match@GOTPAGE
Lloh8:
	ldr	x8, [x8, _atmel_pmecc_legacy_match@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	ldr	w1, [x19]
	bl	_of_match_node
Lloh10:
	adrp	x1, _at91sam9g45_caps@GOTPAGE
Lloh11:
	ldr	x1, [x1, _at91sam9g45_caps@GOTPAGEOFF]
	cbz	x0, LBB0_8
; %bb.7:
	ldr	x8, [x0]
	cmp	x8, #0
	csel	x1, x1, x8, eq
LBB0_8:
	mov	x0, x20
	mov	w2, #1
	mov	w3, #2
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_atmel_pmecc_create
LBB0_9:
	mov	x0, #0
LBB0_10:
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ecc-engine"

l_.str.1:                               ; @.str.1
	.asciz	"atmel,has-pmecc"

	.comm	_at91sam9g45_caps,4,2           ; @at91sam9g45_caps
	.comm	_atmel_pmecc_legacy_match,4,2   ; @atmel_pmecc_legacy_match
.subsections_via_symbols
