	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atmel_securam_wait
_atmel_securam_wait:                    ## @atmel_securam_wait
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	leaq	L_.str(%rip), %rdi
	callq	_syscon_regmap_lookup_by_compatible
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	movq	_AT91_SECUMOD_RAMRDY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	movl	$10000, %r8d                    ## imm = 0x2710
	movl	$500000, %r9d                   ## imm = 0x7A120
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_regmap_read_poll_timeout       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"atmel,sama5d2-secumod"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_AT91_SECUMOD_RAMRDY,4,2        ## @AT91_SECUMOD_RAMRDY
	.comm	_AT91_SECUMOD_RAMRDY_READY,4,2  ## @AT91_SECUMOD_RAMRDY_READY
	.no_dead_strip	_atmel_securam_wait
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atmel_securam_wait
_atmel_securam_wait:                    ; @atmel_securam_wait
	.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
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_syscon_regmap_lookup_by_compatible
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _ENODEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODEV@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
	ret
LBB0_2:
Lloh5:
	adrp	x8, _AT91_SECUMOD_RAMRDY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AT91_SECUMOD_RAMRDY@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w3, #0
	mov	w4, #10000
	mov	w5, #41248
	movk	w5, #7, lsl #16
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_regmap_read_poll_timeout
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"atmel,sama5d2-secumod"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_AT91_SECUMOD_RAMRDY,4,2        ; @AT91_SECUMOD_RAMRDY
	.comm	_AT91_SECUMOD_RAMRDY_READY,4,2  ; @AT91_SECUMOD_RAMRDY_READY
	.no_dead_strip	_atmel_securam_wait
.subsections_via_symbols
