	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ocrdma_qp_state_machine        ## -- Begin function ocrdma_qp_state_machine
	.p2align	4, 0x90
_ocrdma_qp_state_machine:               ## @ocrdma_qp_state_machine
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rdi, %r12
	movl	%esi, %edi
	callq	_get_ocrdma_qp_state
	movl	%eax, %r15d
	leaq	4(%r12), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	movl	(%r12), %edi
	callq	_get_ibqp_state
	movl	%eax, (%rbx)
LBB0_2:
	movl	(%r12), %eax
	movl	$1, %ebx
	cmpl	%eax, %r15d
	je	LBB0_19
## %bb.3:
	addl	$-128, %eax
	cmpl	$6, %eax
	ja	LBB0_17
## %bb.4:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_14:
	movl	%r15d, %eax
	orl	$4, %eax
	cmpl	$134, %eax
	je	LBB0_15
	jmp	LBB0_17
LBB0_12:
	leal	-128(%r15), %eax
	cmpl	$6, %eax
	ja	LBB0_17
## %bb.13:
	movl	$69, %ecx
	btl	%eax, %ecx
	jb	LBB0_15
	jmp	LBB0_17
LBB0_11:
	leal	-128(%r15), %eax
	cmpl	$2, %eax
	jae	LBB0_8
	jmp	LBB0_15
LBB0_10:
	cmpl	$130, %r15d
	jne	LBB0_8
	jmp	LBB0_15
LBB0_5:
	movl	%r15d, %eax
	andl	$-2, %eax
	cmpl	$132, %eax
	jne	LBB0_17
	jmp	LBB0_15
LBB0_6:
	cmpl	$131, %r15d
	je	LBB0_15
## %bb.7:
	cmpl	$133, %r15d
	je	LBB0_15
LBB0_8:
	cmpl	$134, %r15d
	jne	LBB0_17
## %bb.9:
	movq	%r12, %rdi
	callq	_ocrdma_flush_qp
	jmp	LBB0_15
LBB0_16:
	cmpl	$132, %r15d
	je	LBB0_15
LBB0_17:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	je	LBB0_15
## %bb.18:
	negl	%ebx
	jmp	LBB0_19
LBB0_15:
	movl	%r15d, (%r12)
	xorl	%ebx, %ebx
LBB0_19:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
LJTI0_0:
	.long	L0_0_set_14
	.long	L0_0_set_12
	.long	L0_0_set_11
	.long	L0_0_set_10
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_16
	.end_data_region
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ocrdma_qp_state_machine        ; -- Begin function ocrdma_qp_state_machine
	.p2align	2
_ocrdma_qp_state_machine:               ; @ocrdma_qp_state_machine
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x22, x2
	mov	x20, x0
	mov	x0, x1
	bl	_get_ocrdma_qp_state
	mov	x21, x0
	add	x19, x20, #4
	mov	x0, x19
	bl	_spin_lock_irqsave
	cbz	x22, LBB0_2
; %bb.1:
	ldr	w0, [x20]
	bl	_get_ibqp_state
	str	w0, [x22]
LBB0_2:
	ldr	w8, [x20]
	cmp	w21, w8
	b.ne	LBB0_4
; %bb.3:
	mov	w22, #1
	b	LBB0_20
LBB0_4:
	sub	w8, w8, #128
	cmp	w8, #6
	b.hi	LBB0_17
; %bb.5:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_6
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_6:
	orr	w8, w21, #0x4
	cmp	w8, #134
	b.eq	LBB0_19
	b	LBB0_17
LBB0_7:
	sub	w8, w21, #128
	cmp	w8, #6
	b.hi	LBB0_17
; %bb.8:
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #69
	tst	w8, w9
	b.ne	LBB0_19
	b	LBB0_17
LBB0_9:
	sub	w8, w21, #128
	cmp	w8, #2
	b.hs	LBB0_14
	b	LBB0_19
LBB0_10:
	cmp	w21, #130
	b.ne	LBB0_14
	b	LBB0_19
LBB0_11:
	and	w8, w21, #0xfffffffe
	cmp	w8, #132
	b.ne	LBB0_17
	b	LBB0_19
LBB0_12:
	cmp	w21, #131
	b.eq	LBB0_19
; %bb.13:
	cmp	w21, #133
	b.eq	LBB0_19
LBB0_14:
	cmp	w21, #134
	b.ne	LBB0_17
; %bb.15:
	mov	x0, x20
	bl	_ocrdma_flush_qp
	b	LBB0_19
LBB0_16:
	cmp	w21, #132
	b.eq	LBB0_19
LBB0_17:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cbz	w8, LBB0_19
; %bb.18:
	neg	w22, w8
	b	LBB0_20
LBB0_19:
	mov	w22, #0
	str	w21, [x20]
LBB0_20:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x0, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_7-LBB0_6)>>2
	.byte	(LBB0_9-LBB0_6)>>2
	.byte	(LBB0_10-LBB0_6)>>2
	.byte	(LBB0_11-LBB0_6)>>2
	.byte	(LBB0_12-LBB0_6)>>2
	.byte	(LBB0_16-LBB0_6)>>2
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
