	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atmel_isi_wait_status
_atmel_isi_wait_status:                 ## @atmel_isi_wait_status
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_init_completion
	movq	_ISI_INTEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%r14d, %r14d
	jne	LBB0_1
## %bb.2:
	movq	_ISI_CTRL_DIS@GOTPCREL(%rip), %r14
	jmp	LBB0_3
LBB0_1:
	movq	_ISI_CTRL_SRST@GOTPCREL(%rip), %r14
LBB0_3:
	movl	(%r14), %edx
	movq	%rbx, %rdi
	callq	_isi_writel
	movq	_ISI_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	movq	%rbx, %rdi
	callq	_isi_writel
	movl	$500, %edi                      ## imm = 0x1F4
	callq	_msecs_to_jiffies
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_wait_for_completion_timeout
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	subl	(%rdx), %ecx
	xorl	%edx, %edx
	testq	%rax, %rax
	cmovnel	%edx, %ecx
	movl	%ecx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ISI_INTEN,4,2                  ## @ISI_INTEN
	.comm	_ISI_CTRL_SRST,4,2              ## @ISI_CTRL_SRST
	.comm	_ISI_CTRL,4,2                   ## @ISI_CTRL
	.comm	_ISI_CTRL_DIS,4,2               ## @ISI_CTRL_DIS
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.no_dead_strip	_atmel_isi_wait_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atmel_isi_wait_status
_atmel_isi_wait_status:                 ; @atmel_isi_wait_status
	.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
	mov	x19, x1
	mov	x20, x0
	bl	_init_completion
Lloh0:
	adrp	x8, _ISI_INTEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ISI_INTEN@GOTPAGEOFF]
Lloh2:
	adrp	x9, _ISI_CTRL_SRST@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ISI_CTRL_SRST@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _ISI_CTRL_DIS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ISI_CTRL_DIS@GOTPAGEOFF]
	cmp	w19, #0
	csel	x19, x8, x9, eq
	ldr	w2, [x19]
	mov	x0, x20
	bl	_isi_writel
Lloh7:
	adrp	x8, _ISI_CTRL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ISI_CTRL@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	ldr	w2, [x19]
	mov	x0, x20
	bl	_isi_writel
	mov	w0, #500
	bl	_msecs_to_jiffies
	mov	x1, x0
	mov	x0, x20
	bl	_wait_for_completion_timeout
Lloh10:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	x0, #0
	csneg	w0, wzr, w8, ne
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ISI_INTEN,4,2                  ; @ISI_INTEN
	.comm	_ISI_CTRL_SRST,4,2              ; @ISI_CTRL_SRST
	.comm	_ISI_CTRL,4,2                   ; @ISI_CTRL
	.comm	_ISI_CTRL_DIS,4,2               ; @ISI_CTRL_DIS
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.no_dead_strip	_atmel_isi_wait_status
.subsections_via_symbols
