	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfp_nsp_wait                   ## -- Begin function nfp_nsp_wait
	.p2align	4, 0x90
_nfp_nsp_wait:                          ## @nfp_nsp_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	%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	%rdi, %r14
	movq	_jiffies@GOTPCREL(%rip), %rcx
	movq	_NFP_NSP_TIMEOUT_BOOT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	_HZ@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	imulq	%rdx, %r15
	addq	(%rcx), %r15
	movl	(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	callq	_nfp_dbg
	movq	_EAGAIN@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_SPCODE_NOOP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_nfp_nsp_command
	movl	%eax, %r12d
	movl	(%r13), %eax
	addl	%r12d, %eax
	jne	LBB0_7
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$25, %edi
	callq	_msleep_interruptible
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_time_after
	testq	%rax, %rax
	je	LBB0_1
## %bb.5:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_3:
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rax
LBB0_6:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_7:
	testl	%r12d, %r12d
	je	LBB0_9
## %bb.8:
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r12d, %edx
	callq	_nfp_err
LBB0_9:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_NFP_NSP_TIMEOUT_BOOT,8,3       ## @NFP_NSP_TIMEOUT_BOOT
	.comm	_HZ,8,3                         ## @HZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Waiting for NSP to respond (%u sec max).\n"

	.comm	_SPCODE_NOOP,4,2                ## @SPCODE_NOOP
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_ERESTARTSYS,4,2                ## @ERESTARTSYS
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
L_.str.1:                               ## @.str.1
	.asciz	"NSP failed to respond %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfp_nsp_wait                   ; -- Begin function nfp_nsp_wait
	.p2align	2
_nfp_nsp_wait:                          ; @nfp_nsp_wait
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x23, _jiffies@GOTPAGE
Lloh1:
	ldr	x23, [x23, _jiffies@GOTPAGEOFF]
	ldr	x8, [x23]
Lloh2:
	adrp	x9, _NFP_NSP_TIMEOUT_BOOT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _NFP_NSP_TIMEOUT_BOOT@GOTPAGEOFF]
Lloh4:
	ldr	x2, [x9]
Lloh5:
	adrp	x9, _HZ@GOTPAGE
Lloh6:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	madd	x20, x9, x2, x8
	ldr	w0, [x0]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_nfp_dbg
Lloh10:
	adrp	x24, _SPCODE_NOOP@GOTPAGE
Lloh11:
	ldr	x24, [x24, _SPCODE_NOOP@GOTPAGEOFF]
Lloh12:
	adrp	x25, _EAGAIN@GOTPAGE
Lloh13:
	ldr	x25, [x25, _EAGAIN@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x22, [x23]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_nfp_nsp_command
	ldr	w8, [x25]
	cmn	w0, w8
	b.ne	LBB0_5
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #25
	bl	_msleep_interruptible
	cbnz	x0, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x22
	mov	x1, x20
	bl	_time_after
	cbz	x0, LBB0_1
; %bb.4:
Lloh14:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
	mov	x21, x0
	cbnz	w21, LBB0_8
	b	LBB0_9
LBB0_6:
Lloh16:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w21, w8
	cbz	w21, LBB0_9
LBB0_8:
	ldr	w0, [x19]
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x21
	bl	_nfp_err
LBB0_9:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_NFP_NSP_TIMEOUT_BOOT,8,3       ; @NFP_NSP_TIMEOUT_BOOT
	.comm	_HZ,8,3                         ; @HZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Waiting for NSP to respond (%u sec max).\n"

	.comm	_SPCODE_NOOP,4,2                ; @SPCODE_NOOP
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_ERESTARTSYS,4,2                ; @ERESTARTSYS
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
l_.str.1:                               ; @.str.1
	.asciz	"NSP failed to respond %d\n"

.subsections_via_symbols
