	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mantis_hif_sbuf_opdone_wait
_mantis_hif_sbuf_opdone_wait:           ## @mantis_hif_sbuf_opdone_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, %r15
	movq	8(%rdi), %r13
	movl	4(%rdi), %r14d
	movq	_MANTIS_SBUF_OPDONE@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	andl	(%rdi), %ebx
	movl	$500, %edi                      ## imm = 0x1F4
	callq	_msecs_to_jiffies
	movl	%r14d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_wait_event_timeout
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	addl	(%rcx), %eax
	jne	LBB0_2
## %bb.1:
	movq	_MANTIS_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r13), %ecx
	leaq	L_.str(%rip), %rdx
	xorl	%r14d, %r14d
	movl	$1, %esi
	xorl	%eax, %eax
	callq	_dprintk
	movq	_EREMOTEIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
LBB0_2:
	movq	_MANTIS_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rdx
	movl	$1, %esi
	xorl	%eax, %eax
	callq	_dprintk
	movl	(%r12), %eax
	notl	%eax
	andl	%eax, (%r15)
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MANTIS_SBUF_OPDONE,4,2         ## @MANTIS_SBUF_OPDONE
	.comm	_ERESTARTSYS,4,2                ## @ERESTARTSYS
	.comm	_MANTIS_ERROR,4,2               ## @MANTIS_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Adapter(%d) Slot(0): Smart buffer operation timeout !"

	.comm	_EREMOTEIO,4,2                  ## @EREMOTEIO
	.comm	_MANTIS_DEBUG,4,2               ## @MANTIS_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"Smart Buffer Operation complete"

	.no_dead_strip	_mantis_hif_sbuf_opdone_wait
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mantis_hif_sbuf_opdone_wait
_mantis_hif_sbuf_opdone_wait:           ; @mantis_hif_sbuf_opdone_wait
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x0
	ldr	x23, [x0, #8]
	ldp	w8, w20, [x0]
Lloh0:
	adrp	x22, _MANTIS_SBUF_OPDONE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MANTIS_SBUF_OPDONE@GOTPAGEOFF]
	ldr	w9, [x22]
	and	w21, w9, w8
	mov	w0, #500
	bl	_msecs_to_jiffies
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_wait_event_timeout
Lloh2:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _MANTIS_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MANTIS_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	w8, [x23]
	str	x8, [sp]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #1
	bl	_dprintk
Lloh10:
	adrp	x8, _EREMOTEIO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EREMOTEIO@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_3
LBB0_2:
	mov	w20, #0
LBB0_3:
Lloh13:
	adrp	x8, _MANTIS_DEBUG@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MANTIS_DEBUG@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x2, l_.str.1@PAGE
Lloh17:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w1, #1
	bl	_dprintk
	ldr	w8, [x22]
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
	mov	x0, x20
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_MANTIS_SBUF_OPDONE,4,2         ; @MANTIS_SBUF_OPDONE
	.comm	_ERESTARTSYS,4,2                ; @ERESTARTSYS
	.comm	_MANTIS_ERROR,4,2               ; @MANTIS_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Adapter(%d) Slot(0): Smart buffer operation timeout !"

	.comm	_EREMOTEIO,4,2                  ; @EREMOTEIO
	.comm	_MANTIS_DEBUG,4,2               ; @MANTIS_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"Smart Buffer Operation complete"

	.no_dead_strip	_mantis_hif_sbuf_opdone_wait
.subsections_via_symbols
