	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40iw_hw_flush_wqes            ## -- Begin function i40iw_hw_flush_wqes
	.p2align	4, 0x90
_i40iw_hw_flush_wqes:                   ## @i40iw_hw_flush_wqes
	.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	%rdx, %r13
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	(%rsi), %r14
	movl	%ecx, %esi
	callq	_i40iw_get_cqp_request
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	addq	$32, %rdi
	movq	%r13, %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	_OP_QP_FLUSH_WQES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movl	$1, 8(%rbx)
	movq	%r12, 24(%rbx)
	movq	%rbx, 16(%rbx)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_i40iw_handle_cqp_op
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rdi
	callq	_i40iw_pr_err
LBB0_4:
	leaq	4(%r14), %rdi
	callq	_complete
LBB0_10:
	movq	%r14, %rdi
	callq	_complete
	jmp	LBB0_11
LBB0_1:
	movq	_I40IW_ERR_NO_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_11
LBB0_5:
	xorl	%r15d, %r15d
	cmpl	$0, 4(%rbx)
	je	LBB0_6
LBB0_11:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	(%rbx), %eax
	cmpl	$128, %eax
	je	LBB0_10
## %bb.7:
	cmpl	$130, %eax
	je	LBB0_11
## %bb.8:
	cmpl	$129, %eax
	jne	LBB0_4
## %bb.9:
	addq	$4, %r14
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_I40IW_ERR_NO_MEMORY,4,2        ## @I40IW_ERR_NO_MEMORY
	.comm	_OP_QP_FLUSH_WQES,4,2           ## @OP_QP_FLUSH_WQES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CQP-OP Flush WQE's fail"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40iw_hw_flush_wqes            ; -- Begin function i40iw_hw_flush_wqes
	.p2align	2
_i40iw_hw_flush_wqes:                   ; @i40iw_hw_flush_wqes
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x23, x2
	mov	x22, x1
	mov	x20, x0
	ldr	x19, [x1]
	mov	x1, x3
	bl	_i40iw_get_cqp_request
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	add	x0, x0, #32
	mov	x1, x23
	mov	w2, #4
	bl	_memcpy
Lloh0:
	adrp	x8, _OP_QP_FLUSH_WQES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OP_QP_FLUSH_WQES@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x21, #40]
	mov	w8, #1
	str	w8, [x21, #8]
	stp	x21, x22, [x21, #16]
	mov	x0, x20
	mov	x1, x21
	bl	_i40iw_handle_cqp_op
	cbz	w0, LBB0_4
; %bb.2:
	mov	x20, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_i40iw_pr_err
	add	x0, x19, #4
	bl	_complete
	mov	x0, x19
	bl	_complete
	b	LBB0_13
LBB0_3:
Lloh5:
	adrp	x8, _I40IW_ERR_NO_MEMORY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _I40IW_ERR_NO_MEMORY@GOTPAGEOFF]
Lloh7:
	ldr	w20, [x8]
	b	LBB0_13
LBB0_4:
	ldr	w8, [x21, #4]
	cbnz	w8, LBB0_12
; %bb.5:
	ldr	w8, [x21]
	cmp	w8, #128
	b.eq	LBB0_10
; %bb.6:
	cmp	w8, #130
	b.eq	LBB0_12
; %bb.7:
	cmp	w8, #129
	b.ne	LBB0_9
; %bb.8:
	add	x0, x19, #4
	b	LBB0_11
LBB0_9:
	add	x0, x19, #4
	bl	_complete
LBB0_10:
	mov	x0, x19
LBB0_11:
	bl	_complete
LBB0_12:
	mov	w20, #0
LBB0_13:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_I40IW_ERR_NO_MEMORY,4,2        ; @I40IW_ERR_NO_MEMORY
	.comm	_OP_QP_FLUSH_WQES,4,2           ; @OP_QP_FLUSH_WQES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CQP-OP Flush WQE's fail"

.subsections_via_symbols
