	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function siw_qp_nextstate_from_close
_siw_qp_nextstate_from_close:           ## @siw_qp_nextstate_from_close
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movslq	(%rsi), %rax
	xorl	%r14d, %r14d
	cmpq	$130, %rax
	je	LBB0_8
## %bb.1:
	movq	%rdi, %rbx
	cmpl	$129, %eax
	je	LBB0_4
## %bb.2:
	cmpl	$128, %eax
	jne	LBB0_7
## %bb.3:
	movq	%rbx, %rdi
	callq	_tx_wqe
	movl	(%rax), %eax
	movq	_SIW_WR_IDLE@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpl	(%rcx), %eax
	setne	%dil
	callq	_WARN_ON
	movl	$128, (%rbx)
	jmp	LBB0_8
LBB0_4:
	movl	$129, (%rbx)
	movq	%rbx, %rdi
	callq	_tx_wqe
	movl	(%rax), %eax
	movq	_SIW_WR_IDLE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_siw_sq_flush
LBB0_6:
	movq	%rbx, %rdi
	callq	_siw_rq_flush
	jmp	LBB0_8
LBB0_7:
	movq	_siw_qp_state_to_string@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	(%rbx), %rdx
	movl	(%rcx,%rdx,4), %edx
	movl	(%rcx,%rax,4), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_siw_dbg_qp
	movq	_ECONNABORTED@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_8:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SIW_WR_IDLE,4,2                ## @SIW_WR_IDLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"state transition undefined: %s => %s\n"

	.comm	_siw_qp_state_to_string,8,3     ## @siw_qp_state_to_string
	.comm	_ECONNABORTED,4,2               ## @ECONNABORTED
	.no_dead_strip	_siw_qp_nextstate_from_close
.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_close
_siw_qp_nextstate_from_close:           ; @siw_qp_nextstate_from_close
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x1]
	cmp	w8, #130
	b.eq	LBB0_4
; %bb.1:
	mov	x19, x0
	cmp	w8, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #128
	b.ne	LBB0_8
; %bb.3:
	mov	x0, x19
	bl	_tx_wqe
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _SIW_WR_IDLE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SIW_WR_IDLE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w0, ne
	bl	_WARN_ON
	mov	w0, #0
	mov	w8, #128
	str	w8, [x19]
	b	LBB0_9
LBB0_4:
	mov	w0, #0
	b	LBB0_9
LBB0_5:
	str	w8, [x19]
	mov	x0, x19
	bl	_tx_wqe
	ldr	w8, [x0]
Lloh3:
	adrp	x9, _SIW_WR_IDLE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SIW_WR_IDLE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_siw_sq_flush
LBB0_7:
	mov	x0, x19
	bl	_siw_rq_flush
	mov	w0, #0
	b	LBB0_9
LBB0_8:
	sxtw	x8, w8
Lloh6:
	adrp	x9, _siw_qp_state_to_string@GOTPAGE
Lloh7:
	ldr	x9, [x9, _siw_qp_state_to_string@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ldrsw	x10, [x19]
	ldr	w2, [x9, x10, lsl #2]
	ldr	w3, [x9, x8, lsl #2]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_siw_dbg_qp
Lloh11:
	adrp	x8, _ECONNABORTED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ECONNABORTED@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SIW_WR_IDLE,4,2                ; @SIW_WR_IDLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"state transition undefined: %s => %s\n"

	.comm	_siw_qp_state_to_string,8,3     ; @siw_qp_state_to_string
	.comm	_ECONNABORTED,4,2               ; @ECONNABORTED
	.no_dead_strip	_siw_qp_nextstate_from_close
.subsections_via_symbols
