	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function siw_qp_nextstate_from_rts
_siw_qp_nextstate_from_rts:             ## @siw_qp_nextstate_from_rts
	.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
	movq	%rdi, %r14
	movl	(%rsi), %eax
	cmpl	$128, %eax
	je	LBB0_7
## %bb.1:
	cmpl	$129, %eax
	je	LBB0_8
## %bb.2:
	xorl	%ebx, %ebx
	cmpl	$130, %eax
	jne	LBB0_10
## %bb.3:
	movq	%r14, %rdi
	callq	_tx_wqe
	movl	(%rax), %eax
	movq	_SIW_WR_IDLE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_5
## %bb.4:
	movl	$130, (%r14)
	jmp	LBB0_6
LBB0_7:
	movl	$128, (%r14)
	movq	_TERM_ERROR_LAYER_RDMAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RDMAP_ETYPE_CATASTROPHIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_RDMAP_ECODE_UNSPECIFIED@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$1, %ebx
	movq	%r14, %rdi
	movl	$1, %r8d
	callq	_siw_init_terminate
	jmp	LBB0_10
LBB0_8:
	movq	%r14, %rdi
	callq	_siw_sq_flush
	movq	%r14, %rdi
	callq	_siw_rq_flush
	movl	$129, (%r14)
	jmp	LBB0_9
LBB0_5:
	movl	$129, (%r14)
	movq	%r14, %rdi
	callq	_siw_sq_flush
LBB0_6:
	movq	%r14, %rdi
	callq	_siw_rq_flush
LBB0_9:
	movl	$1, %ebx
LBB0_10:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SIW_WR_IDLE,4,2                ## @SIW_WR_IDLE
	.comm	_TERM_ERROR_LAYER_RDMAP,4,2     ## @TERM_ERROR_LAYER_RDMAP
	.comm	_RDMAP_ETYPE_CATASTROPHIC,4,2   ## @RDMAP_ETYPE_CATASTROPHIC
	.comm	_RDMAP_ECODE_UNSPECIFIED,4,2    ## @RDMAP_ECODE_UNSPECIFIED
	.no_dead_strip	_siw_qp_nextstate_from_rts
.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_rts
_siw_qp_nextstate_from_rts:             ; @siw_qp_nextstate_from_rts
	.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
	mov	x19, x0
	ldr	w8, [x1]
	cmp	w8, #128
	b.eq	LBB0_5
; %bb.1:
	cmp	w8, #129
	b.eq	LBB0_6
; %bb.2:
	cmp	w8, #130
	b.ne	LBB0_7
; %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
	b.ne	LBB0_8
; %bb.4:
	mov	w8, #130
	str	w8, [x19]
	b	LBB0_9
LBB0_5:
	str	w8, [x19]
Lloh3:
	adrp	x8, _TERM_ERROR_LAYER_RDMAP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TERM_ERROR_LAYER_RDMAP@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _RDMAP_ETYPE_CATASTROPHIC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RDMAP_ETYPE_CATASTROPHIC@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x8, _RDMAP_ECODE_UNSPECIFIED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RDMAP_ECODE_UNSPECIFIED@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	mov	w20, #1
	mov	x0, x19
	mov	w4, #1
	bl	_siw_init_terminate
	b	LBB0_11
LBB0_6:
	mov	x0, x19
	bl	_siw_sq_flush
	mov	x0, x19
	bl	_siw_rq_flush
	mov	w8, #129
	str	w8, [x19]
	b	LBB0_10
LBB0_7:
	mov	w20, #0
	b	LBB0_11
LBB0_8:
	mov	w8, #129
	str	w8, [x19]
	mov	x0, x19
	bl	_siw_sq_flush
LBB0_9:
	mov	x0, x19
	bl	_siw_rq_flush
LBB0_10:
	mov	w20, #1
LBB0_11:
	mov	x0, x20
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SIW_WR_IDLE,4,2                ; @SIW_WR_IDLE
	.comm	_TERM_ERROR_LAYER_RDMAP,4,2     ; @TERM_ERROR_LAYER_RDMAP
	.comm	_RDMAP_ETYPE_CATASTROPHIC,4,2   ; @RDMAP_ETYPE_CATASTROPHIC
	.comm	_RDMAP_ECODE_UNSPECIFIED,4,2    ; @RDMAP_ECODE_UNSPECIFIED
	.no_dead_strip	_siw_qp_nextstate_from_rts
.subsections_via_symbols
