	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40iw_sc_cq_destroy
_i40iw_sc_cq_destroy:                   ## @i40iw_sc_cq_destroy
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rdi, %r15
	movq	48(%rdi), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_i40iw_sc_cqp_get_next_send_wqe
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movl	32(%r15), %edx
	xorl	%r13d, %r13d
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_set_64bit_val
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_RS_64_1
	movq	%r12, %rdi
	movl	$8, %esi
	movl	%eax, %edx
	callq	_set_64bit_val
	movl	40(%r15), %edx
	movq	%r12, %rdi
	movl	$40, %esi
	callq	_set_64bit_val
	cmpl	$0, (%r15)
	movl	$0, %edx
	je	LBB0_4
## %bb.3:
	movl	36(%r15), %edx
LBB0_4:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	movl	$48, %esi
	callq	_set_64bit_val
	movl	24(%r15), %ebx
	cmpl	$0, 4(%r15)
	je	LBB0_6
## %bb.5:
	movl	8(%r15), %r13d
LBB0_6:
	movq	_I40IW_CQPSQ_CQ_CEQID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	callq	_LS_64
	orl	%eax, %ebx
	movq	_I40IW_CQP_OP_DESTROY_CQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_I40IW_CQPSQ_OPCODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LS_64
	movl	%eax, %r13d
	movl	12(%r15), %edi
	movq	_I40IW_CQPSQ_CQ_LPBLSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LS_64
	orl	%eax, %r13d
	orl	%ebx, %r13d
	movl	(%r15), %edi
	movq	_I40IW_CQPSQ_CQ_VIRTMAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LS_64
	movl	%eax, %r14d
	movl	16(%r15), %edi
	movq	_I40IW_CQPSQ_CQ_ENCEQEMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LS_64
	orl	%eax, %r14d
	movl	4(%r15), %edi
	movq	_I40IW_CQPSQ_CQ_CEQIDVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LS_64
	orl	%eax, %r14d
	orl	%r13d, %r14d
	movl	20(%r15), %edi
	movq	_I40IW_CQPSQ_TPHEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LS_64
	movl	%eax, %ebx
	movl	28(%r15), %edi
	movq	_I40IW_CQPSQ_CQ_AVOIDMEMCNFLCT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LS_64
	orl	%eax, %ebx
	orl	%r14d, %ebx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	(%r14), %edi
	movq	_I40IW_CQPSQ_WQEVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LS_64
	orl	%eax, %ebx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_i40iw_insert_wqe_hdr
	movl	4(%r14), %edi
	movq	_I40IW_DEBUG_WQE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_I40IW_CQP_WQE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	shll	$3, %r8d
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rcx
	callq	_i40iw_debug_buf
	xorl	%ebx, %ebx
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	callq	_i40iw_sc_cqp_post_sq
	jmp	LBB0_8
LBB0_1:
	movq	_I40IW_ERR_RING_FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I40IW_ERR_RING_FULL,4,2        ## @I40IW_ERR_RING_FULL
	.comm	_I40IW_CQPSQ_CQ_CEQID,4,2       ## @I40IW_CQPSQ_CQ_CEQID
	.comm	_I40IW_CQP_OP_DESTROY_CQ,4,2    ## @I40IW_CQP_OP_DESTROY_CQ
	.comm	_I40IW_CQPSQ_OPCODE,4,2         ## @I40IW_CQPSQ_OPCODE
	.comm	_I40IW_CQPSQ_CQ_LPBLSIZE,4,2    ## @I40IW_CQPSQ_CQ_LPBLSIZE
	.comm	_I40IW_CQPSQ_CQ_VIRTMAP,4,2     ## @I40IW_CQPSQ_CQ_VIRTMAP
	.comm	_I40IW_CQPSQ_CQ_ENCEQEMASK,4,2  ## @I40IW_CQPSQ_CQ_ENCEQEMASK
	.comm	_I40IW_CQPSQ_CQ_CEQIDVALID,4,2  ## @I40IW_CQPSQ_CQ_CEQIDVALID
	.comm	_I40IW_CQPSQ_TPHEN,4,2          ## @I40IW_CQPSQ_TPHEN
	.comm	_I40IW_CQPSQ_CQ_AVOIDMEMCNFLCT,4,2 ## @I40IW_CQPSQ_CQ_AVOIDMEMCNFLCT
	.comm	_I40IW_CQPSQ_WQEVALID,4,2       ## @I40IW_CQPSQ_WQEVALID
	.comm	_I40IW_DEBUG_WQE,4,2            ## @I40IW_DEBUG_WQE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CQ_DESTROY WQE"

	.comm	_I40IW_CQP_WQE_SIZE,4,2         ## @I40IW_CQP_WQE_SIZE
	.no_dead_strip	_i40iw_sc_cq_destroy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40iw_sc_cq_destroy
_i40iw_sc_cq_destroy:                   ; @i40iw_sc_cq_destroy
	.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	x19, x2
	mov	x22, x0
	ldr	x8, [x0, #48]
	ldr	x20, [x8]
	mov	x0, x20
	bl	_i40iw_sc_cqp_get_next_send_wqe
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	ldr	w2, [x22, #32]
	mov	w1, #0
	bl	_set_64bit_val
	mov	x0, x22
	mov	w1, #1
	bl	_RS_64_1
	mov	x2, x0
	mov	x0, x21
	mov	w1, #8
	bl	_set_64bit_val
	ldr	w2, [x22, #40]
	mov	x0, x21
	mov	w1, #40
	bl	_set_64bit_val
	ldr	w8, [x22]
	cbz	w8, LBB0_4
; %bb.2:
	ldr	w2, [x22, #36]
	b	LBB0_5
LBB0_3:
Lloh0:
	adrp	x8, _I40IW_ERR_RING_FULL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I40IW_ERR_RING_FULL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_11
LBB0_4:
	mov	w2, #0
LBB0_5:
	mov	x0, x21
	mov	w1, #48
	bl	_set_64bit_val
	ldr	w23, [x22, #24]
	ldr	w8, [x22, #4]
	cbz	w8, LBB0_7
; %bb.6:
	ldr	w0, [x22, #8]
	b	LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
Lloh3:
	adrp	x8, _I40IW_CQPSQ_CQ_CEQID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I40IW_CQPSQ_CQ_CEQID@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_LS_64
	orr	w23, w0, w23
Lloh6:
	adrp	x8, _I40IW_CQP_OP_DESTROY_CQ@GOTPAGE
Lloh7:
	ldr	x8, [x8, _I40IW_CQP_OP_DESTROY_CQ@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _I40IW_CQPSQ_OPCODE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _I40IW_CQPSQ_OPCODE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_LS_64
	orr	w23, w23, w0
	ldr	w0, [x22, #12]
Lloh12:
	adrp	x8, _I40IW_CQPSQ_CQ_LPBLSIZE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _I40IW_CQPSQ_CQ_LPBLSIZE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_LS_64
	orr	w23, w23, w0
	ldr	w0, [x22]
Lloh15:
	adrp	x8, _I40IW_CQPSQ_CQ_VIRTMAP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _I40IW_CQPSQ_CQ_VIRTMAP@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_LS_64
	orr	w23, w23, w0
	ldr	w0, [x22, #16]
Lloh18:
	adrp	x8, _I40IW_CQPSQ_CQ_ENCEQEMASK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _I40IW_CQPSQ_CQ_ENCEQEMASK@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	bl	_LS_64
	orr	w23, w23, w0
	ldr	w0, [x22, #4]
Lloh21:
	adrp	x8, _I40IW_CQPSQ_CQ_CEQIDVALID@GOTPAGE
Lloh22:
	ldr	x8, [x8, _I40IW_CQPSQ_CQ_CEQIDVALID@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	bl	_LS_64
	orr	w23, w23, w0
	ldr	w0, [x22, #20]
Lloh24:
	adrp	x8, _I40IW_CQPSQ_TPHEN@GOTPAGE
Lloh25:
	ldr	x8, [x8, _I40IW_CQPSQ_TPHEN@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	bl	_LS_64
	orr	w23, w23, w0
	ldr	w0, [x22, #28]
Lloh27:
	adrp	x8, _I40IW_CQPSQ_CQ_AVOIDMEMCNFLCT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _I40IW_CQPSQ_CQ_AVOIDMEMCNFLCT@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	bl	_LS_64
	orr	w22, w23, w0
	ldr	w0, [x20]
Lloh30:
	adrp	x8, _I40IW_CQPSQ_WQEVALID@GOTPAGE
Lloh31:
	ldr	x8, [x8, _I40IW_CQPSQ_WQEVALID@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	bl	_LS_64
	orr	w1, w22, w0
	mov	x0, x21
	bl	_i40iw_insert_wqe_hdr
Lloh33:
	adrp	x8, _I40IW_DEBUG_WQE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _I40IW_DEBUG_WQE@GOTPAGEOFF]
	ldr	w0, [x20, #4]
Lloh35:
	ldr	w1, [x8]
Lloh36:
	adrp	x8, _I40IW_CQP_WQE_SIZE@GOTPAGE
Lloh37:
	ldr	x8, [x8, _I40IW_CQP_WQE_SIZE@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	lsl	w4, w8, #3
Lloh39:
	adrp	x2, l_.str@PAGE
Lloh40:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, x21
	bl	_i40iw_debug_buf
	cbz	w19, LBB0_10
; %bb.9:
	mov	x0, x20
	bl	_i40iw_sc_cqp_post_sq
LBB0_10:
	mov	w0, #0
LBB0_11:
	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	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_I40IW_ERR_RING_FULL,4,2        ; @I40IW_ERR_RING_FULL
	.comm	_I40IW_CQPSQ_CQ_CEQID,4,2       ; @I40IW_CQPSQ_CQ_CEQID
	.comm	_I40IW_CQP_OP_DESTROY_CQ,4,2    ; @I40IW_CQP_OP_DESTROY_CQ
	.comm	_I40IW_CQPSQ_OPCODE,4,2         ; @I40IW_CQPSQ_OPCODE
	.comm	_I40IW_CQPSQ_CQ_LPBLSIZE,4,2    ; @I40IW_CQPSQ_CQ_LPBLSIZE
	.comm	_I40IW_CQPSQ_CQ_VIRTMAP,4,2     ; @I40IW_CQPSQ_CQ_VIRTMAP
	.comm	_I40IW_CQPSQ_CQ_ENCEQEMASK,4,2  ; @I40IW_CQPSQ_CQ_ENCEQEMASK
	.comm	_I40IW_CQPSQ_CQ_CEQIDVALID,4,2  ; @I40IW_CQPSQ_CQ_CEQIDVALID
	.comm	_I40IW_CQPSQ_TPHEN,4,2          ; @I40IW_CQPSQ_TPHEN
	.comm	_I40IW_CQPSQ_CQ_AVOIDMEMCNFLCT,4,2 ; @I40IW_CQPSQ_CQ_AVOIDMEMCNFLCT
	.comm	_I40IW_CQPSQ_WQEVALID,4,2       ; @I40IW_CQPSQ_WQEVALID
	.comm	_I40IW_DEBUG_WQE,4,2            ; @I40IW_DEBUG_WQE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CQ_DESTROY WQE"

	.comm	_I40IW_CQP_WQE_SIZE,4,2         ; @I40IW_CQP_WQE_SIZE
	.no_dead_strip	_i40iw_sc_cq_destroy
.subsections_via_symbols
