	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40iw_sc_qp_create
_i40iw_sc_qp_create:                    ## @i40iw_sc_qp_create
	.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	%ecx, %r14d
	movl	8(%rdi), %eax
	movq	_I40IW_MIN_IW_QP_ID@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jl	LBB0_5
## %bb.1:
	movq	_I40IW_MAX_IW_QP_ID@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jg	LBB0_5
## %bb.2:
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	24(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %r15
	movq	%r15, %rdi
	movl	%edx, %esi
	callq	_i40iw_sc_cqp_get_next_send_wqe
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	%rax, %r12
	movl	16(%rbx), %edx
	movq	%rax, %rdi
	movl	$16, %esi
	callq	_set_64bit_val
	movl	12(%rbx), %edx
	movq	%r12, %rdi
	movl	$40, %esi
	callq	_set_64bit_val
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movl	8(%rbx), %r15d
	movq	_I40IW_CQP_OP_CREATE_QP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_I40IW_CQPSQ_OPCODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LS_64
	orl	%eax, %r15d
	xorl	%edi, %edi
	cmpq	$0, 16(%r13)
	setne	%dil
	movq	_I40IW_CQPSQ_QP_ORDVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LS_64
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movl	%eax, %r14d
	movl	(%r13), %edi
	movq	_I40IW_CQPSQ_QP_TOECTXVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LS_64
	orl	%eax, %r14d
	orl	%r15d, %r14d
	movl	(%rbx), %edi
	movq	_I40IW_CQPSQ_QP_QPTYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LS_64
	movl	%eax, %r15d
	movl	4(%rbx), %edi
	movq	_I40IW_CQPSQ_QP_VQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LS_64
	orl	%eax, %r15d
	movl	4(%r13), %edi
	movq	_I40IW_CQPSQ_QP_CQNUMVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LS_64
	orl	%eax, %r15d
	orl	%r14d, %r15d
	movl	8(%r13), %edi
	movq	_I40IW_CQPSQ_QP_ARPTABIDXVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LS_64
	movl	%eax, %ebx
	movl	12(%r13), %edi
	movq	_I40IW_CQPSQ_QP_NEXTIWSTATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LS_64
	orl	%eax, %ebx
	orl	%r15d, %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.4:
	movq	%r14, %rdi
	callq	_i40iw_sc_cqp_post_sq
	jmp	LBB0_8
LBB0_5:
	movq	_I40IW_ERR_INVALID_QP_ID@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	_I40IW_ERR_RING_FULL@GOTPCREL(%rip), %rax
LBB0_7:
	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_MIN_IW_QP_ID,4,2         ## @I40IW_MIN_IW_QP_ID
	.comm	_I40IW_MAX_IW_QP_ID,4,2         ## @I40IW_MAX_IW_QP_ID
	.comm	_I40IW_ERR_INVALID_QP_ID,4,2    ## @I40IW_ERR_INVALID_QP_ID
	.comm	_I40IW_ERR_RING_FULL,4,2        ## @I40IW_ERR_RING_FULL
	.comm	_I40IW_CQP_OP_CREATE_QP,4,2     ## @I40IW_CQP_OP_CREATE_QP
	.comm	_I40IW_CQPSQ_OPCODE,4,2         ## @I40IW_CQPSQ_OPCODE
	.comm	_I40IW_CQPSQ_QP_ORDVALID,4,2    ## @I40IW_CQPSQ_QP_ORDVALID
	.comm	_I40IW_CQPSQ_QP_TOECTXVALID,4,2 ## @I40IW_CQPSQ_QP_TOECTXVALID
	.comm	_I40IW_CQPSQ_QP_QPTYPE,4,2      ## @I40IW_CQPSQ_QP_QPTYPE
	.comm	_I40IW_CQPSQ_QP_VQ,4,2          ## @I40IW_CQPSQ_QP_VQ
	.comm	_I40IW_CQPSQ_QP_CQNUMVALID,4,2  ## @I40IW_CQPSQ_QP_CQNUMVALID
	.comm	_I40IW_CQPSQ_QP_ARPTABIDXVALID,4,2 ## @I40IW_CQPSQ_QP_ARPTABIDXVALID
	.comm	_I40IW_CQPSQ_QP_NEXTIWSTATE,4,2 ## @I40IW_CQPSQ_QP_NEXTIWSTATE
	.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	"QP_CREATE WQE"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40iw_sc_qp_create
_i40iw_sc_qp_create:                    ; @i40iw_sc_qp_create
	.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
	ldr	w8, [x0, #8]
Lloh0:
	adrp	x9, _I40IW_MIN_IW_QP_ID@GOTPAGE
Lloh1:
	ldr	x9, [x9, _I40IW_MIN_IW_QP_ID@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _I40IW_MAX_IW_QP_ID@GOTPAGE
Lloh4:
	ldr	x10, [x10, _I40IW_MAX_IW_QP_ID@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w8, w9
	ccmp	w8, w10, #0, ge
	b.le	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _I40IW_ERR_INVALID_QP_ID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _I40IW_ERR_INVALID_QP_ID@GOTPAGEOFF]
	b	LBB0_7
LBB0_2:
	mov	x19, x3
	mov	x22, x1
	mov	x23, x0
	ldr	x8, [x0, #24]
	ldr	x8, [x8]
	ldr	x20, [x8]
	mov	x0, x20
	mov	x1, x2
	bl	_i40iw_sc_cqp_get_next_send_wqe
	cbz	x0, LBB0_6
; %bb.3:
	mov	x21, x0
	ldr	w2, [x23, #16]
	mov	w1, #16
	bl	_set_64bit_val
	ldr	w2, [x23, #12]
	mov	x0, x21
	mov	w1, #40
	bl	_set_64bit_val
	ldr	w24, [x23, #8]
Lloh8:
	adrp	x8, _I40IW_CQP_OP_CREATE_QP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _I40IW_CQP_OP_CREATE_QP@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x8, _I40IW_CQPSQ_OPCODE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _I40IW_CQPSQ_OPCODE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_LS_64
	orr	w24, w0, w24
	ldr	x8, [x22, #16]
	cmp	x8, #0
	cset	w0, ne
Lloh14:
	adrp	x8, _I40IW_CQPSQ_QP_ORDVALID@GOTPAGE
Lloh15:
	ldr	x8, [x8, _I40IW_CQPSQ_QP_ORDVALID@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_LS_64
	orr	w24, w24, w0
	ldr	w0, [x22]
Lloh17:
	adrp	x8, _I40IW_CQPSQ_QP_TOECTXVALID@GOTPAGE
Lloh18:
	ldr	x8, [x8, _I40IW_CQPSQ_QP_TOECTXVALID@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	bl	_LS_64
	orr	w24, w24, w0
	ldr	w0, [x23]
Lloh20:
	adrp	x8, _I40IW_CQPSQ_QP_QPTYPE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _I40IW_CQPSQ_QP_QPTYPE@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	bl	_LS_64
	orr	w24, w24, w0
	ldr	w0, [x23, #4]
Lloh23:
	adrp	x8, _I40IW_CQPSQ_QP_VQ@GOTPAGE
Lloh24:
	ldr	x8, [x8, _I40IW_CQPSQ_QP_VQ@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	bl	_LS_64
	orr	w23, w24, w0
	ldr	w0, [x22, #4]
Lloh26:
	adrp	x8, _I40IW_CQPSQ_QP_CQNUMVALID@GOTPAGE
Lloh27:
	ldr	x8, [x8, _I40IW_CQPSQ_QP_CQNUMVALID@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	bl	_LS_64
	orr	w23, w23, w0
	ldr	w0, [x22, #8]
Lloh29:
	adrp	x8, _I40IW_CQPSQ_QP_ARPTABIDXVALID@GOTPAGE
Lloh30:
	ldr	x8, [x8, _I40IW_CQPSQ_QP_ARPTABIDXVALID@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	bl	_LS_64
	orr	w23, w23, w0
	ldr	w0, [x22, #12]
Lloh32:
	adrp	x8, _I40IW_CQPSQ_QP_NEXTIWSTATE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _I40IW_CQPSQ_QP_NEXTIWSTATE@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	bl	_LS_64
	orr	w22, w23, w0
	ldr	w0, [x20]
Lloh35:
	adrp	x8, _I40IW_CQPSQ_WQEVALID@GOTPAGE
Lloh36:
	ldr	x8, [x8, _I40IW_CQPSQ_WQEVALID@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	bl	_LS_64
	orr	w1, w22, w0
	mov	x0, x21
	bl	_i40iw_insert_wqe_hdr
Lloh38:
	adrp	x8, _I40IW_DEBUG_WQE@GOTPAGE
Lloh39:
	ldr	x8, [x8, _I40IW_DEBUG_WQE@GOTPAGEOFF]
	ldr	w0, [x20, #4]
Lloh40:
	ldr	w1, [x8]
Lloh41:
	adrp	x8, _I40IW_CQP_WQE_SIZE@GOTPAGE
Lloh42:
	ldr	x8, [x8, _I40IW_CQP_WQE_SIZE@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	lsl	w4, w8, #3
Lloh44:
	adrp	x2, l_.str@PAGE
Lloh45:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, x21
	bl	_i40iw_debug_buf
	cbz	w19, LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_i40iw_sc_cqp_post_sq
LBB0_5:
	mov	w0, #0
	b	LBB0_8
LBB0_6:
Lloh46:
	adrp	x8, _I40IW_ERR_RING_FULL@GOTPAGE
Lloh47:
	ldr	x8, [x8, _I40IW_ERR_RING_FULL@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
LBB0_8:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_I40IW_MIN_IW_QP_ID,4,2         ; @I40IW_MIN_IW_QP_ID
	.comm	_I40IW_MAX_IW_QP_ID,4,2         ; @I40IW_MAX_IW_QP_ID
	.comm	_I40IW_ERR_INVALID_QP_ID,4,2    ; @I40IW_ERR_INVALID_QP_ID
	.comm	_I40IW_ERR_RING_FULL,4,2        ; @I40IW_ERR_RING_FULL
	.comm	_I40IW_CQP_OP_CREATE_QP,4,2     ; @I40IW_CQP_OP_CREATE_QP
	.comm	_I40IW_CQPSQ_OPCODE,4,2         ; @I40IW_CQPSQ_OPCODE
	.comm	_I40IW_CQPSQ_QP_ORDVALID,4,2    ; @I40IW_CQPSQ_QP_ORDVALID
	.comm	_I40IW_CQPSQ_QP_TOECTXVALID,4,2 ; @I40IW_CQPSQ_QP_TOECTXVALID
	.comm	_I40IW_CQPSQ_QP_QPTYPE,4,2      ; @I40IW_CQPSQ_QP_QPTYPE
	.comm	_I40IW_CQPSQ_QP_VQ,4,2          ; @I40IW_CQPSQ_QP_VQ
	.comm	_I40IW_CQPSQ_QP_CQNUMVALID,4,2  ; @I40IW_CQPSQ_QP_CQNUMVALID
	.comm	_I40IW_CQPSQ_QP_ARPTABIDXVALID,4,2 ; @I40IW_CQPSQ_QP_ARPTABIDXVALID
	.comm	_I40IW_CQPSQ_QP_NEXTIWSTATE,4,2 ; @I40IW_CQPSQ_QP_NEXTIWSTATE
	.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	"QP_CREATE WQE"

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