	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function siw_qp_nextstate_from_idle
_siw_qp_nextstate_from_idle:            ## @siw_qp_nextstate_from_idle
	.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	%rdi, %r14
	movl	(%rsi), %eax
	xorl	%ebx, %ebx
	cmpl	$129, %eax
	je	LBB0_11
## %bb.1:
	cmpl	$128, %eax
	jne	LBB0_13
## %bb.2:
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	_SIW_MPA_CRC@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	testl	%eax, 4(%rsi)
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_siw_qp_enable_crc
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
LBB0_4:
	movq	_SIW_QP_ATTR_LLP_HANDLE@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_5
## %bb.7:
	movq	_SIW_QP_ATTR_MPA@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_8
## %bb.9:
	movq	32(%r14), %rax
	movq	_RDMAP_UNTAGGED_QN_SEND@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	$0, (%rax,%rcx,4)
	movq	_RDMAP_UNTAGGED_QN_RDMA_READ@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	$0, (%rax,%rdx,4)
	movq	_RDMAP_UNTAGGED_QN_TERMINATE@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movl	$0, (%rax,%rsi,4)
	movq	24(%r14), %rax
	movl	$1, (%rax,%rcx,4)
	movl	$1, (%rax,%rdx,4)
	movl	$1, (%rax,%rsi,4)
	movl	12(%r15), %edx
	movl	16(%r15), %esi
	movq	%r14, %rdi
	callq	_siw_qp_readq_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.10:
	movl	8(%r15), %eax
	movl	%eax, 20(%r14)
	movl	$128, 8(%r14)
	movl	(%r13), %eax
	andl	4(%r15), %eax
	leaq	L_.str.4(%rip), %rax
	leaq	L_.str.3(%rip), %rdx
	cmoveq	%rax, %rdx
	movl	12(%r14), %r8d
	movl	16(%r14), %ecx
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_siw_dbg_qp
	jmp	LBB0_13
LBB0_11:
	movq	%r14, %rdi
	callq	_siw_rq_flush
	movl	$129, 8(%r14)
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.12:
	callq	_siw_cep_put
	movq	$0, (%r14)
	jmp	LBB0_13
LBB0_5:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_6
LBB0_8:
	leaq	L_.str.1(%rip), %rsi
LBB0_6:
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_siw_dbg_qp
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SIW_MPA_CRC,4,2                ## @SIW_MPA_CRC
	.comm	_SIW_QP_ATTR_LLP_HANDLE,4,2     ## @SIW_QP_ATTR_LLP_HANDLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no socket\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SIW_QP_ATTR_MPA,4,2            ## @SIW_QP_ATTR_MPA
L_.str.1:                               ## @.str.1
	.asciz	"no MPA\n"

	.comm	_RDMAP_UNTAGGED_QN_SEND,8,3     ## @RDMAP_UNTAGGED_QN_SEND
	.comm	_RDMAP_UNTAGGED_QN_RDMA_READ,8,3 ## @RDMAP_UNTAGGED_QN_RDMA_READ
	.comm	_RDMAP_UNTAGGED_QN_TERMINATE,8,3 ## @RDMAP_UNTAGGED_QN_TERMINATE
L_.str.2:                               ## @.str.2
	.asciz	"enter RTS: crc=%s, ord=%u, ird=%u\n"

L_.str.3:                               ## @.str.3
	.asciz	"y"

L_.str.4:                               ## @.str.4
	.asciz	"n"

	.no_dead_strip	_siw_qp_nextstate_from_idle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function siw_qp_nextstate_from_idle
_siw_qp_nextstate_from_idle:            ; @siw_qp_nextstate_from_idle
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
	ldr	w8, [x1]
	cmp	w8, #129
	b.eq	LBB0_8
; %bb.1:
	cmp	w8, #128
	b.ne	LBB0_10
; %bb.2:
	mov	x21, x2
	mov	x20, x1
	ldr	w8, [x1, #4]
Lloh0:
	adrp	x22, _SIW_MPA_CRC@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SIW_MPA_CRC@GOTPAGEOFF]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_siw_qp_enable_crc
	cbnz	w0, LBB0_14
LBB0_4:
Lloh2:
	adrp	x8, _SIW_QP_ATTR_LLP_HANDLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SIW_QP_ATTR_LLP_HANDLE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_11
; %bb.5:
Lloh5:
	adrp	x8, _SIW_QP_ATTR_MPA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SIW_QP_ATTR_MPA@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_12
; %bb.6:
Lloh8:
	adrp	x8, _RDMAP_UNTAGGED_QN_SEND@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RDMAP_UNTAGGED_QN_SEND@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	lsl	x8, x8, #2
	ldp	x10, x9, [x19, #24]
	str	wzr, [x9, x8]
Lloh11:
	adrp	x11, _RDMAP_UNTAGGED_QN_RDMA_READ@GOTPAGE
Lloh12:
	ldr	x11, [x11, _RDMAP_UNTAGGED_QN_RDMA_READ@GOTPAGEOFF]
Lloh13:
	ldr	x11, [x11]
	lsl	x11, x11, #2
	str	wzr, [x9, x11]
Lloh14:
	adrp	x12, _RDMAP_UNTAGGED_QN_TERMINATE@GOTPAGE
Lloh15:
	ldr	x12, [x12, _RDMAP_UNTAGGED_QN_TERMINATE@GOTPAGEOFF]
Lloh16:
	ldr	x12, [x12]
	lsl	x12, x12, #2
	str	wzr, [x9, x12]
	mov	w9, #1
	str	w9, [x10, x8]
	str	w9, [x10, x11]
	str	w9, [x10, x12]
	ldp	w2, w1, [x20, #12]
	mov	x0, x19
	bl	_siw_qp_readq_init
	cbnz	w0, LBB0_14
; %bb.7:
	ldp	w9, w8, [x20, #4]
	str	w8, [x19, #20]
	mov	w8, #128
	str	w8, [x19, #8]
	ldr	w8, [x22]
Lloh17:
	adrp	x10, l_.str.3@PAGE
Lloh18:
	add	x10, x10, l_.str.3@PAGEOFF
Lloh19:
	adrp	x11, l_.str.4@PAGE
Lloh20:
	add	x11, x11, l_.str.4@PAGEOFF
	tst	w8, w9
	csel	x8, x11, x10, eq
	ldp	w10, w9, [x19, #12]
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_siw_dbg_qp
	mov	w0, #0
	b	LBB0_14
LBB0_8:
	mov	x0, x19
	bl	_siw_rq_flush
	mov	w8, #129
	str	w8, [x19, #8]
	ldr	x0, [x19]
	cbz	x0, LBB0_14
; %bb.9:
	bl	_siw_cep_put
	mov	w0, #0
	str	xzr, [x19]
	b	LBB0_14
LBB0_10:
	mov	w0, #0
	b	LBB0_14
LBB0_11:
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_13
LBB0_12:
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_13:
	mov	x0, x19
	bl	_siw_dbg_qp
Lloh27:
	adrp	x8, _EINVAL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_SIW_MPA_CRC,4,2                ; @SIW_MPA_CRC
	.comm	_SIW_QP_ATTR_LLP_HANDLE,4,2     ; @SIW_QP_ATTR_LLP_HANDLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no socket\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SIW_QP_ATTR_MPA,4,2            ; @SIW_QP_ATTR_MPA
l_.str.1:                               ; @.str.1
	.asciz	"no MPA\n"

	.comm	_RDMAP_UNTAGGED_QN_SEND,8,3     ; @RDMAP_UNTAGGED_QN_SEND
	.comm	_RDMAP_UNTAGGED_QN_RDMA_READ,8,3 ; @RDMAP_UNTAGGED_QN_RDMA_READ
	.comm	_RDMAP_UNTAGGED_QN_TERMINATE,8,3 ; @RDMAP_UNTAGGED_QN_TERMINATE
l_.str.2:                               ; @.str.2
	.asciz	"enter RTS: crc=%s, ord=%u, ird=%u\n"

l_.str.3:                               ; @.str.3
	.asciz	"y"

l_.str.4:                               ; @.str.4
	.asciz	"n"

	.no_dead_strip	_siw_qp_nextstate_from_idle
.subsections_via_symbols
