	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40iw_puda_cq_wqe
_i40iw_puda_cq_wqe:                     ## @i40iw_puda_cq_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	12(%rbx), %edx
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_set_64bit_val
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_RS_64_1
	movq	%r12, %rdi
	movl	$8, %esi
	movl	%eax, %edx
	callq	_set_64bit_val
	movl	(%rbx), %edi
	movq	_I40IW_CQPSQ_CQ_SHADOW_READ_THRESHOLD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LS_64
	movq	%r12, %rdi
	movl	$16, %esi
	movl	%eax, %edx
	callq	_set_64bit_val
	movl	4(%rbx), %edx
	movq	%r12, %rdi
	movl	$32, %esi
	callq	_set_64bit_val
	movl	8(%rbx), %edx
	movq	%r12, %rdi
	movl	$40, %esi
	callq	_set_64bit_val
	movl	16(%rbx), %ebx
	movq	_I40IW_CQP_OP_CREATE_CQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_I40IW_CQPSQ_OPCODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LS_64
	orl	%eax, %ebx
	movq	_I40IW_CQPSQ_CQ_CHKOVERFLOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edi
	callq	_LS_64
	movl	%eax, %r13d
	movq	_I40IW_CQPSQ_CQ_ENCEQEMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edi
	callq	_LS_64
	orl	%eax, %r13d
	orl	%ebx, %r13d
	movq	_I40IW_CQPSQ_CQ_CEQIDVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %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
	movq	_I40IW_DEBUG_PUDA@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	%r14, %rdi
	movq	%r12, %rcx
	callq	_i40iw_debug_buf
	movq	(%r14), %rdi
	callq	_i40iw_sc_cqp_post_sq
	movq	(%r14), %rdi
	movq	8(%r14), %rax
	movq	_I40IW_CQP_OP_CREATE_CQ@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_CQPSQ_CQ_SHADOW_READ_THRESHOLD,4,2 ## @I40IW_CQPSQ_CQ_SHADOW_READ_THRESHOLD
	.comm	_I40IW_CQP_OP_CREATE_CQ,4,2     ## @I40IW_CQP_OP_CREATE_CQ
	.comm	_I40IW_CQPSQ_OPCODE,4,2         ## @I40IW_CQPSQ_OPCODE
	.comm	_I40IW_CQPSQ_CQ_CHKOVERFLOW,4,2 ## @I40IW_CQPSQ_CQ_CHKOVERFLOW
	.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_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"

	.comm	_I40IW_CQP_WQE_SIZE,4,2         ## @I40IW_CQP_WQE_SIZE
	.no_dead_strip	_i40iw_puda_cq_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_cq_wqe
_i40iw_puda_cq_wqe:                     ; @i40iw_puda_cq_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	x21, [x0]
	mov	x0, x21
	mov	w1, #0
	bl	_i40iw_sc_cqp_get_next_send_wqe
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x0
	ldr	w2, [x22, #12]
	mov	w1, #0
	bl	_set_64bit_val
	mov	x0, x22
	mov	w1, #1
	bl	_RS_64_1
	mov	x2, x0
	mov	x0, x20
	mov	w1, #8
	bl	_set_64bit_val
	ldr	w0, [x22]
Lloh0:
	adrp	x8, _I40IW_CQPSQ_CQ_SHADOW_READ_THRESHOLD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I40IW_CQPSQ_CQ_SHADOW_READ_THRESHOLD@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_LS_64
	mov	x2, x0
	mov	x0, x20
	mov	w1, #16
	bl	_set_64bit_val
	ldr	w2, [x22, #4]
	mov	x0, x20
	mov	w1, #32
	bl	_set_64bit_val
	ldr	w2, [x22, #8]
	mov	x0, x20
	mov	w1, #40
	bl	_set_64bit_val
	ldr	w23, [x22, #16]
Lloh3:
	adrp	x22, _I40IW_CQP_OP_CREATE_CQ@GOTPAGE
Lloh4:
	ldr	x22, [x22, _I40IW_CQP_OP_CREATE_CQ@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh5:
	adrp	x8, _I40IW_CQPSQ_OPCODE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _I40IW_CQPSQ_OPCODE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_LS_64
	orr	w23, w0, w23
Lloh8:
	adrp	x8, _I40IW_CQPSQ_CQ_CHKOVERFLOW@GOTPAGE
Lloh9:
	ldr	x8, [x8, _I40IW_CQPSQ_CQ_CHKOVERFLOW@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	w0, #1
	bl	_LS_64
	orr	w23, w23, w0
Lloh11:
	adrp	x8, _I40IW_CQPSQ_CQ_ENCEQEMASK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _I40IW_CQPSQ_CQ_ENCEQEMASK@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	w0, #1
	bl	_LS_64
	orr	w23, w23, w0
Lloh14:
	adrp	x8, _I40IW_CQPSQ_CQ_CEQIDVALID@GOTPAGE
Lloh15:
	ldr	x8, [x8, _I40IW_CQPSQ_CQ_CEQIDVALID@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	w0, #1
	bl	_LS_64
	orr	w23, w23, w0
	ldr	w0, [x21]
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, x20
	bl	_i40iw_insert_wqe_hdr
Lloh20:
	adrp	x8, _I40IW_DEBUG_PUDA@GOTPAGE
Lloh21:
	ldr	x8, [x8, _I40IW_DEBUG_PUDA@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x8, _I40IW_CQP_WQE_SIZE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _I40IW_CQP_WQE_SIZE@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	lsl	w4, w8, #3
Lloh26:
	adrp	x2, l_.str@PAGE
Lloh27:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x3, x20
	bl	_i40iw_debug_buf
	ldr	x0, [x19]
	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:
Lloh28:
	adrp	x8, _I40IW_ERR_RING_FULL@GOTPAGE
Lloh29:
	ldr	x8, [x8, _I40IW_ERR_RING_FULL@GOTPAGEOFF]
Lloh30:
	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	Lloh26, Lloh27
	.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 AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_I40IW_ERR_RING_FULL,4,2        ; @I40IW_ERR_RING_FULL
	.comm	_I40IW_CQPSQ_CQ_SHADOW_READ_THRESHOLD,4,2 ; @I40IW_CQPSQ_CQ_SHADOW_READ_THRESHOLD
	.comm	_I40IW_CQP_OP_CREATE_CQ,4,2     ; @I40IW_CQP_OP_CREATE_CQ
	.comm	_I40IW_CQPSQ_OPCODE,4,2         ; @I40IW_CQPSQ_OPCODE
	.comm	_I40IW_CQPSQ_CQ_CHKOVERFLOW,4,2 ; @I40IW_CQPSQ_CQ_CHKOVERFLOW
	.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_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"

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