	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40iw_puda_qp_wqe
_i40iw_puda_qp_wqe:                     ## @i40iw_puda_qp_wqe
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rdi), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_i40iw_sc_cqp_get_next_send_wqe
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movl	8(%rbx), %edx
	movq	%rax, %rdi
	movl	$16, %esi
	callq	_set_64bit_val
	movl	4(%rbx), %edx
	movq	%r12, %rdi
	movl	$40, %esi
	callq	_set_64bit_val
	movl	(%rbx), %ebx
	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, %ebx
	movq	_I40IW_QP_TYPE_UDA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_I40IW_CQPSQ_QP_QPTYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LS_64
	movl	%eax, %r13d
	movq	_I40IW_CQPSQ_QP_CQNUMVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edi
	callq	_LS_64
	orl	%eax, %r13d
	orl	%ebx, %r13d
	movq	_I40IW_CQPSQ_QP_NEXTIWSTATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$2, %edi
	callq	_LS_64
	movl	%eax, %ebx
	movl	(%r15), %edi
	movq	_I40IW_CQPSQ_WQEVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LS_64
	orl	%eax, %ebx
	orl	%r13d, %ebx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_i40iw_insert_wqe_hdr
	movl	4(%r15), %edi
	movq	_I40IW_DEBUG_PUDA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rcx
	movl	$32, %r8d
	callq	_i40iw_debug_buf
	movq	%r15, %rdi
	callq	_i40iw_sc_cqp_post_sq
	movq	(%r14), %rdi
	movq	8(%r14), %rax
	movq	_I40IW_CQP_OP_CREATE_QP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-48(%rbp), %rdx
	callq	*(%rax)
	jmp	LBB0_3
LBB0_1:
	movq	_I40IW_ERR_RING_FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_3:
	addq	$8, %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_CQP_OP_CREATE_QP,4,2     ## @I40IW_CQP_OP_CREATE_QP
	.comm	_I40IW_CQPSQ_OPCODE,4,2         ## @I40IW_CQPSQ_OPCODE
	.comm	_I40IW_QP_TYPE_UDA,4,2          ## @I40IW_QP_TYPE_UDA
	.comm	_I40IW_CQPSQ_QP_QPTYPE,4,2      ## @I40IW_CQPSQ_QP_QPTYPE
	.comm	_I40IW_CQPSQ_QP_CQNUMVALID,4,2  ## @I40IW_CQPSQ_QP_CQNUMVALID
	.comm	_I40IW_CQPSQ_QP_NEXTIWSTATE,4,2 ## @I40IW_CQPSQ_QP_NEXTIWSTATE
	.comm	_I40IW_CQPSQ_WQEVALID,4,2       ## @I40IW_CQPSQ_WQEVALID
	.comm	_I40IW_DEBUG_PUDA,4,2           ## @I40IW_DEBUG_PUDA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PUDA CQE"

	.no_dead_strip	_i40iw_puda_qp_wqe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40iw_puda_qp_wqe
_i40iw_puda_qp_wqe:                     ; @i40iw_puda_qp_wqe
	.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	x22, x1
	mov	x19, x0
	ldr	x20, [x0]
	mov	x0, x20
	mov	w1, #0
	bl	_i40iw_sc_cqp_get_next_send_wqe
	cbz	x0, LBB0_2
; %bb.1:
	mov	x21, x0
	ldr	w2, [x22, #8]
	mov	w1, #16
	bl	_set_64bit_val
	ldr	w2, [x22, #4]
	mov	x0, x21
	mov	w1, #40
	bl	_set_64bit_val
	ldr	w23, [x22]
Lloh0:
	adrp	x22, _I40IW_CQP_OP_CREATE_QP@GOTPAGE
Lloh1:
	ldr	x22, [x22, _I40IW_CQP_OP_CREATE_QP@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh2:
	adrp	x8, _I40IW_CQPSQ_OPCODE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _I40IW_CQPSQ_OPCODE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_LS_64
	orr	w23, w0, w23
Lloh5:
	adrp	x8, _I40IW_QP_TYPE_UDA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _I40IW_QP_TYPE_UDA@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _I40IW_CQPSQ_QP_QPTYPE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _I40IW_CQPSQ_QP_QPTYPE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_LS_64
	orr	w23, w23, w0
Lloh11:
	adrp	x8, _I40IW_CQPSQ_QP_CQNUMVALID@GOTPAGE
Lloh12:
	ldr	x8, [x8, _I40IW_CQPSQ_QP_CQNUMVALID@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	w0, #1
	bl	_LS_64
	orr	w23, w23, w0
Lloh14:
	adrp	x8, _I40IW_CQPSQ_QP_NEXTIWSTATE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _I40IW_CQPSQ_QP_NEXTIWSTATE@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	w0, #2
	bl	_LS_64
	orr	w23, w23, w0
	ldr	w0, [x20]
Lloh17:
	adrp	x8, _I40IW_CQPSQ_WQEVALID@GOTPAGE
Lloh18:
	ldr	x8, [x8, _I40IW_CQPSQ_WQEVALID@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	bl	_LS_64
	orr	w1, w23, w0
	mov	x0, x21
	bl	_i40iw_insert_wqe_hdr
	ldr	w0, [x20, #4]
Lloh20:
	adrp	x8, _I40IW_DEBUG_PUDA@GOTPAGE
Lloh21:
	ldr	x8, [x8, _I40IW_DEBUG_PUDA@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x2, l_.str@PAGE
Lloh24:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, x21
	mov	w4, #32
	bl	_i40iw_debug_buf
	mov	x0, x20
	bl	_i40iw_sc_cqp_post_sq
	ldp	x0, x8, [x19]
	ldr	x8, [x8]
	ldr	w1, [x22]
	add	x2, sp, #8
	blr	x8
	b	LBB0_3
LBB0_2:
Lloh25:
	adrp	x8, _I40IW_ERR_RING_FULL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _I40IW_ERR_RING_FULL@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
LBB0_3:
	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 AdrpAdd	Lloh23, Lloh24
	.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 AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.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_QP_TYPE_UDA,4,2          ; @I40IW_QP_TYPE_UDA
	.comm	_I40IW_CQPSQ_QP_QPTYPE,4,2      ; @I40IW_CQPSQ_QP_QPTYPE
	.comm	_I40IW_CQPSQ_QP_CQNUMVALID,4,2  ; @I40IW_CQPSQ_QP_CQNUMVALID
	.comm	_I40IW_CQPSQ_QP_NEXTIWSTATE,4,2 ; @I40IW_CQPSQ_QP_NEXTIWSTATE
	.comm	_I40IW_CQPSQ_WQEVALID,4,2       ; @I40IW_CQPSQ_WQEVALID
	.comm	_I40IW_DEBUG_PUDA,4,2           ; @I40IW_DEBUG_PUDA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PUDA CQE"

	.no_dead_strip	_i40iw_puda_qp_wqe
.subsections_via_symbols
