	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_type_state
_check_type_state:                      ## @check_type_state
	.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	%rdx, %rbx
	movq	%rsi, %r14
	xorl	%edi, %edi
	cmpl	$0, 16(%rdx)
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_15
## %bb.1:
	movq	%rbx, %rdi
	callq	_qp_type
                                        ## kill: def $eax killed $eax def $rax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_8
## %bb.2:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_3:
	movq	_IB_OPCODE_UD@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_8:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_12
LBB0_9:
	movq	_IB_OPCODE_UC@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	xorl	%edi, %edi
	andl	(%r14), %eax
	sete	%dil
LBB0_5:
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_6
## %bb.11:
	leaq	L_.str(%rip), %rdi
LBB0_12:
	callq	_pr_warn_ratelimited
	jmp	LBB0_15
LBB0_6:
	movq	_RXE_REQ_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r14)
	je	LBB0_13
## %bb.7:
	movq	8(%rbx), %rax
	movq	_QP_STATE_READY@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	jmp	LBB0_14
LBB0_10:
	movq	_IB_OPCODE_RC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edi, %edi
	andl	(%r14), %eax
	setne	%dil
	jmp	LBB0_5
LBB0_13:
	movq	(%rbx), %rax
	movq	_QP_STATE_READY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	setl	%cl
	movq	_QP_STATE_DRAINED@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	setg	%al
	orb	%cl, %al
	movzbl	%al, %edi
LBB0_14:
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_17
LBB0_15:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_16:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_17:
	xorl	%eax, %eax
	jmp	LBB0_16
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_9
	.long	L0_0_set_3
	.long	L0_0_set_10
	.long	L0_0_set_3
	.end_data_region
                                        ## -- End function
	.comm	_IB_OPCODE_RC,4,2               ## @IB_OPCODE_RC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bad qp type\n"

	.comm	_IB_OPCODE_UC,4,2               ## @IB_OPCODE_UC
	.comm	_IB_OPCODE_UD,4,2               ## @IB_OPCODE_UD
L_.str.1:                               ## @.str.1
	.asciz	"unsupported qp type\n"

	.comm	_RXE_REQ_MASK,4,2               ## @RXE_REQ_MASK
	.comm	_QP_STATE_READY,8,3             ## @QP_STATE_READY
	.comm	_QP_STATE_DRAINED,8,3           ## @QP_STATE_DRAINED
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_check_type_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_type_state
_check_type_state:                      ; @check_type_state
	.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, x2
	mov	x20, x1
	ldr	w8, [x2, #16]
	cmp	w8, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_8
; %bb.1:
	mov	x0, x19
	bl	_qp_type
	sub	w8, w0, #128
	cmp	w8, #4
	b.hi	LBB0_4
; %bb.2:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
	ldr	w8, [x20]
Lloh2:
	adrp	x9, _IB_OPCODE_UD@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IB_OPCODE_UD@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_warn_ratelimited
	b	LBB0_8
LBB0_5:
	ldr	w8, [x20]
Lloh6:
	adrp	x9, _IB_OPCODE_UC@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IB_OPCODE_UC@GOTPAGEOFF]
LBB0_6:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_11
LBB0_7:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_warn_ratelimited
LBB0_8:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	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
LBB0_10:
	ldr	w8, [x20]
Lloh13:
	adrp	x9, _IB_OPCODE_RC@GOTPAGE
Lloh14:
	ldr	x9, [x9, _IB_OPCODE_RC@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, ne
	bl	_unlikely
	cbnz	x0, LBB0_7
LBB0_11:
	ldr	w8, [x20, #4]
Lloh16:
	adrp	x9, _RXE_REQ_MASK@GOTPAGE
Lloh17:
	ldr	x9, [x9, _RXE_REQ_MASK@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.12:
	ldr	x8, [x19, #8]
Lloh19:
	adrp	x9, _QP_STATE_READY@GOTPAGE
Lloh20:
	ldr	x9, [x9, _QP_STATE_READY@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_unlikely
	cbnz	x0, LBB0_8
	b	LBB0_9
LBB0_13:
	ldr	x8, [x19]
Lloh22:
	adrp	x9, _QP_STATE_READY@GOTPAGE
Lloh23:
	ldr	x9, [x9, _QP_STATE_READY@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x8, x9
Lloh25:
	adrp	x9, _QP_STATE_DRAINED@GOTPAGE
Lloh26:
	ldr	x9, [x9, _QP_STATE_DRAINED@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	ccmp	x8, x9, #0, ge
	cset	w0, gt
	bl	_unlikely
	cbnz	x0, LBB0_8
	b	LBB0_9
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
                                        ; -- End function
	.comm	_IB_OPCODE_RC,4,2               ; @IB_OPCODE_RC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bad qp type\n"

	.comm	_IB_OPCODE_UC,4,2               ; @IB_OPCODE_UC
	.comm	_IB_OPCODE_UD,4,2               ; @IB_OPCODE_UD
l_.str.1:                               ; @.str.1
	.asciz	"unsupported qp type\n"

	.comm	_RXE_REQ_MASK,4,2               ; @RXE_REQ_MASK
	.comm	_QP_STATE_READY,8,3             ; @QP_STATE_READY
	.comm	_QP_STATE_DRAINED,8,3           ; @QP_STATE_DRAINED
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_check_type_state
.subsections_via_symbols
