	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function siw_init_rresp
_siw_init_rresp:                        ## @siw_init_rresp
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r12
	callq	_tx_wqe
	movq	%rax, %rbx
	movl	28(%r13), %edi
	callq	_be64_to_cpu
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	24(%r13), %edi
	callq	_be64_to_cpu
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	20(%r13), %edi
	callq	_be32_to_cpu
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movl	16(%r13), %edi
	callq	_be32_to_cpu
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movl	12(%r13), %edi
	callq	_be32_to_cpu
	movq	%rax, %r14
	movl	8(%r13), %edi
	callq	_be32_to_cpu
	movq	%rax, %r15
	movq	(%r13), %rax
	movq	_RDMAP_UNTAGGED_QN_RDMA_READ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	xorl	%edi, %edi
	cmpq	(%rax,%rcx,8), %r15
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_TERM_ERROR_LAYER_DDP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DDP_ETYPE_UNTAGGED_BUF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_DDP_ECODE_UT_INVALID_MSN_RANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%r8d, %r8d
	callq	_siw_init_terminate
	movq	_EPROTO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_2:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	-104(%rbp), %r13                ## 8-byte Reload
	movq	-112(%rbp), %r15                ## 8-byte Reload
	leaq	4(%r12), %rdi
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	movq	(%rbx), %rcx
	movq	_SIW_WR_IDLE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	jne	LBB0_4
## %bb.3:
	movq	$0, 56(%rbx)
	movq	48(%rbx), %rax
	movq	$0, (%rax)
	movq	_SIW_WR_QUEUED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	addq	$8, %rbx
	jmp	LBB0_5
LBB0_4:
	movq	%r12, %rdi
	callq	_irq_alloc_free
	movq	%rax, %rbx
LBB0_5:
	movq	%r15, %r12
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_likely
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_SIW_OP_READ_RESPONSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	24(%rbx), %rax
	movq	%r12, (%rax)
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 16(%rax)
	movq	%r13, 8(%rax)
	movq	%r15, 24(%rax)
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 16(%rbx)
	movq	%r14, 8(%rbx)
	xorl	%eax, %eax
	testq	%r12, %r12
	setne	%al
	movl	%eax, (%rbx)
	movl	4(%rbx), %edi
	movq	_SIW_WQE_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_smp_store_mb
	xorl	%ebx, %ebx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_8
LBB0_7:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_qp_id
	movl	%eax, %esi
	movl	(%r14), %eax
	movl	8(%r14), %ecx
	cltd
	idivl	%ecx
	leaq	L_.str(%rip), %rdi
	callq	_pr_warn
	movq	_TERM_ERROR_LAYER_RDMAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RDMAP_ETYPE_REMOTE_OPERATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_RDMAP_ECODE_CATASTROPHIC_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%r8d, %r8d
	callq	_siw_init_terminate
	movq	_EPROTO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_8:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, -72(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_9
## %bb.10:
	movq	%r14, %rdi
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_siw_sq_start                   ## TAILCALL
LBB0_9:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RDMAP_UNTAGGED_QN_RDMA_READ,8,3 ## @RDMAP_UNTAGGED_QN_RDMA_READ
	.comm	_TERM_ERROR_LAYER_DDP,4,2       ## @TERM_ERROR_LAYER_DDP
	.comm	_DDP_ETYPE_UNTAGGED_BUF,4,2     ## @DDP_ETYPE_UNTAGGED_BUF
	.comm	_DDP_ECODE_UT_INVALID_MSN_RANGE,4,2 ## @DDP_ECODE_UT_INVALID_MSN_RANGE
	.comm	_EPROTO,4,2                     ## @EPROTO
	.comm	_SIW_WR_IDLE,8,3                ## @SIW_WR_IDLE
	.comm	_SIW_WR_QUEUED,8,3              ## @SIW_WR_QUEUED
	.comm	_SIW_OP_READ_RESPONSE,4,2       ## @SIW_OP_READ_RESPONSE
	.comm	_SIW_WQE_VALID,4,2              ## @SIW_WQE_VALID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"siw: [QP %u]: irq %d exceeded %d\n"

	.comm	_TERM_ERROR_LAYER_RDMAP,4,2     ## @TERM_ERROR_LAYER_RDMAP
	.comm	_RDMAP_ETYPE_REMOTE_OPERATION,4,2 ## @RDMAP_ETYPE_REMOTE_OPERATION
	.comm	_RDMAP_ECODE_CATASTROPHIC_STREAM,4,2 ## @RDMAP_ECODE_CATASTROPHIC_STREAM
	.no_dead_strip	_siw_init_rresp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function siw_init_rresp
_siw_init_rresp:                        ; @siw_init_rresp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x19, x0
	bl	_tx_wqe
	mov	x26, x0
	ldr	w0, [x20, #28]
	bl	_be64_to_cpu
	mov	x21, x0
	ldr	w0, [x20, #24]
	bl	_be64_to_cpu
	mov	x22, x0
	ldr	w0, [x20, #20]
	bl	_be32_to_cpu
	mov	x23, x0
	ldr	w0, [x20, #16]
	bl	_be32_to_cpu
	mov	x24, x0
	ldr	w0, [x20, #12]
	bl	_be32_to_cpu
	mov	x25, x0
	ldr	w0, [x20, #8]
	bl	_be32_to_cpu
	mov	x27, x0
Lloh0:
	adrp	x8, _RDMAP_UNTAGGED_QN_RDMA_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RDMAP_UNTAGGED_QN_RDMA_READ@GOTPAGEOFF]
	ldr	x9, [x20]
Lloh2:
	ldr	x8, [x8]
	ldr	x8, [x9, x8, lsl #3]
	cmp	x0, x8
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _TERM_ERROR_LAYER_DDP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TERM_ERROR_LAYER_DDP@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _DDP_ETYPE_UNTAGGED_BUF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DDP_ETYPE_UNTAGGED_BUF@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x8, _DDP_ECODE_UT_INVALID_MSN_RANGE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DDP_ECODE_UT_INVALID_MSN_RANGE@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w4, #0
	bl	_siw_init_terminate
Lloh12:
	adrp	x8, _EPROTO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EPROTO@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_10
LBB0_2:
	add	x0, x19, #4
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	bl	_spin_lock_irqsave
	ldr	x28, [x26]
Lloh15:
	adrp	x8, _SIW_WR_IDLE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SIW_WR_IDLE@GOTPAGEOFF]
Lloh17:
	ldr	x20, [x8]
	cmp	x28, x20
	b.ne	LBB0_4
; %bb.3:
	str	xzr, [x26, #56]
	ldr	x8, [x26, #48]
	str	xzr, [x8]
Lloh18:
	adrp	x8, _SIW_WR_QUEUED@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SIW_WR_QUEUED@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	str	x8, [x26], #8
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	bl	_irq_alloc_free
	mov	x26, x0
LBB0_5:
	mov	x0, x26
	bl	_likely
	cbz	x0, LBB0_7
; %bb.6:
Lloh21:
	adrp	x8, _SIW_OP_READ_RESPONSE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SIW_OP_READ_RESPONSE@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	w8, [x26, #32]
	ldr	x8, [x26, #24]
	stp	x23, x24, [x8]
	stp	x22, x27, [x8, #16]
	stp	x25, x21, [x26, #8]
	cmp	x23, #0
	cset	w8, ne
	str	w8, [x26]
	ldr	w0, [x26, #4]
Lloh24:
	adrp	x8, _SIW_WQE_VALID@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SIW_WQE_VALID@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	bl	_smp_store_mb
	mov	w21, #0
	b	LBB0_8
LBB0_7:
	mov	x0, x19
	bl	_qp_id
	mov	x1, x0
	ldr	w8, [x19]
	ldr	w3, [x19, #8]
	sdiv	w9, w8, w3
	msub	w2, w9, w3, w8
Lloh27:
	adrp	x0, l_.str@PAGE
Lloh28:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_warn
Lloh29:
	adrp	x8, _TERM_ERROR_LAYER_RDMAP@GOTPAGE
Lloh30:
	ldr	x8, [x8, _TERM_ERROR_LAYER_RDMAP@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
Lloh32:
	adrp	x8, _RDMAP_ETYPE_REMOTE_OPERATION@GOTPAGE
Lloh33:
	ldr	x8, [x8, _RDMAP_ETYPE_REMOTE_OPERATION@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x8]
Lloh35:
	adrp	x8, _RDMAP_ECODE_CATASTROPHIC_STREAM@GOTPAGE
Lloh36:
	ldr	x8, [x8, _RDMAP_ECODE_CATASTROPHIC_STREAM@GOTPAGEOFF]
Lloh37:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w4, #0
	bl	_siw_init_terminate
Lloh38:
	adrp	x8, _EPROTO@GOTPAGE
Lloh39:
	ldr	x8, [x8, _EPROTO@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_8:
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	bl	_spin_unlock_irqrestore
	cmp	x28, x20
	b.ne	LBB0_10
; %bb.9:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_siw_sq_start
LBB0_10:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_RDMAP_UNTAGGED_QN_RDMA_READ,8,3 ; @RDMAP_UNTAGGED_QN_RDMA_READ
	.comm	_TERM_ERROR_LAYER_DDP,4,2       ; @TERM_ERROR_LAYER_DDP
	.comm	_DDP_ETYPE_UNTAGGED_BUF,4,2     ; @DDP_ETYPE_UNTAGGED_BUF
	.comm	_DDP_ECODE_UT_INVALID_MSN_RANGE,4,2 ; @DDP_ECODE_UT_INVALID_MSN_RANGE
	.comm	_EPROTO,4,2                     ; @EPROTO
	.comm	_SIW_WR_IDLE,8,3                ; @SIW_WR_IDLE
	.comm	_SIW_WR_QUEUED,8,3              ; @SIW_WR_QUEUED
	.comm	_SIW_OP_READ_RESPONSE,4,2       ; @SIW_OP_READ_RESPONSE
	.comm	_SIW_WQE_VALID,4,2              ; @SIW_WQE_VALID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"siw: [QP %u]: irq %d exceeded %d\n"

	.comm	_TERM_ERROR_LAYER_RDMAP,4,2     ; @TERM_ERROR_LAYER_RDMAP
	.comm	_RDMAP_ETYPE_REMOTE_OPERATION,4,2 ; @RDMAP_ETYPE_REMOTE_OPERATION
	.comm	_RDMAP_ECODE_CATASTROPHIC_STREAM,4,2 ; @RDMAP_ECODE_CATASTROPHIC_STREAM
	.no_dead_strip	_siw_init_rresp
.subsections_via_symbols
