	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_modify_qp_is_ok             ## -- Begin function ib_modify_qp_is_ok
	.p2align	4, 0x90
_ib_modify_qp_is_ok:                    ## @ib_modify_qp_is_ok
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_IB_QPS_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorl	%eax, %eax
	cmpl	%edi, %r8d
	jb	LBB0_10
## %bb.1:
	cmpl	%esi, %r8d
	jb	LBB0_10
## %bb.2:
	movq	_IB_QP_CUR_STATE@GOTPCREL(%rip), %r8
	testl	%ecx, (%r8)
	je	LBB0_7
## %bb.3:
	movq	_IB_QPS_RTR@GOTPCREL(%rip), %r8
	cmpl	%edi, (%r8)
	je	LBB0_7
## %bb.4:
	movq	_IB_QPS_RTS@GOTPCREL(%rip), %r8
	cmpl	%edi, (%r8)
	je	LBB0_7
## %bb.5:
	movq	_IB_QPS_SQD@GOTPCREL(%rip), %r8
	cmpl	%edi, (%r8)
	je	LBB0_7
## %bb.6:
	movq	_IB_QPS_SQE@GOTPCREL(%rip), %r8
	cmpl	%edi, (%r8)
	je	LBB0_7
LBB0_10:
	popq	%rbp
	retq
LBB0_7:
	movq	_qp_state_table@GOTPCREL(%rip), %r8
	movq	(%r8), %r8
	movl	%edi, %edi
	movq	(%r8,%rdi,8), %r10
	movl	%esi, %esi
	leaq	(%rsi,%rsi,2), %rsi
	cmpl	$0, 16(%r10,%rsi,8)
	je	LBB0_10
## %bb.8:
	movq	(%r10,%rsi,8), %r9
	movl	%edx, %r8d
	movl	(%r9,%r8,4), %edx
	movl	%ecx, %edi
	notl	%edi
	testl	%edi, %edx
	jne	LBB0_10
## %bb.9:
	movq	8(%r10,%rsi,8), %rax
	orl	(%rax,%r8,4), %edx
	movq	_IB_QP_STATE@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	notl	%edx
	xorl	%eax, %eax
	testl	%ecx, %edx
	sete	%al
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_QPS_ERR,4,2                 ## @IB_QPS_ERR
	.comm	_IB_QP_CUR_STATE,4,2            ## @IB_QP_CUR_STATE
	.comm	_IB_QPS_RTR,4,2                 ## @IB_QPS_RTR
	.comm	_IB_QPS_RTS,4,2                 ## @IB_QPS_RTS
	.comm	_IB_QPS_SQD,4,2                 ## @IB_QPS_SQD
	.comm	_IB_QPS_SQE,4,2                 ## @IB_QPS_SQE
	.comm	_qp_state_table,8,3             ## @qp_state_table
	.comm	_IB_QP_STATE,4,2                ## @IB_QP_STATE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_modify_qp_is_ok             ; -- Begin function ib_modify_qp_is_ok
	.p2align	2
_ib_modify_qp_is_ok:                    ; @ib_modify_qp_is_ok
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _IB_QPS_ERR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_QPS_ERR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w0
	ccmp	w8, w1, #0, hs
	b.lo	LBB0_5
; %bb.1:
Lloh3:
	adrp	x8, _IB_QP_CUR_STATE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IB_QP_CUR_STATE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w8, w8, w3
Lloh6:
	adrp	x9, _IB_QPS_RTR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IB_QPS_RTR@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _IB_QPS_RTS@GOTPAGE
Lloh10:
	ldr	x10, [x10, _IB_QPS_RTS@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
Lloh12:
	adrp	x11, _IB_QPS_SQD@GOTPAGE
Lloh13:
	ldr	x11, [x11, _IB_QPS_SQD@GOTPAGEOFF]
Lloh14:
	ldr	w11, [x11]
Lloh15:
	adrp	x12, _IB_QPS_SQE@GOTPAGE
Lloh16:
	ldr	x12, [x12, _IB_QPS_SQE@GOTPAGEOFF]
Lloh17:
	ldr	w12, [x12]
	cmp	w8, #0
	ccmp	w9, w0, #4, ne
	ccmp	w10, w0, #4, ne
	ccmp	w11, w0, #4, ne
	ccmp	w12, w0, #4, ne
	b.ne	LBB0_5
; %bb.2:
Lloh18:
	adrp	x8, _qp_state_table@GOTPAGE
Lloh19:
	ldr	x8, [x8, _qp_state_table@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	ldr	x8, [x8, w0, uxtw #3]
	mov	w9, #24
	umaddl	x9, w1, w9, x8
	ldr	w9, [x9, #16]
	cbz	w9, LBB0_5
; %bb.3:
	mov	w9, w1
	mov	w10, #24
	mul	x10, x9, x10
	ldr	x10, [x8, x10]
	ldr	w10, [x10, w2, uxtw #2]
	bics	wzr, w10, w3
	b.ne	LBB0_5
; %bb.4:
	mov	w11, w2
	mov	w12, #24
	madd	x8, x9, x12, x8
	ldr	x8, [x8, #8]
	ldr	w8, [x8, x11, lsl #2]
	orr	w8, w8, w10
Lloh21:
	adrp	x9, _IB_QP_STATE@GOTPAGE
Lloh22:
	ldr	x9, [x9, _IB_QP_STATE@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w8, w8, w9
	bics	wzr, w3, w8
	cset	w0, eq
	ret
LBB0_5:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_QPS_ERR,4,2                 ; @IB_QPS_ERR
	.comm	_IB_QP_CUR_STATE,4,2            ; @IB_QP_CUR_STATE
	.comm	_IB_QPS_RTR,4,2                 ; @IB_QPS_RTR
	.comm	_IB_QPS_RTS,4,2                 ; @IB_QPS_RTS
	.comm	_IB_QPS_SQD,4,2                 ; @IB_QPS_SQD
	.comm	_IB_QPS_SQE,4,2                 ; @IB_QPS_SQE
	.comm	_qp_state_table,8,3             ; @qp_state_table
	.comm	_IB_QP_STATE,4,2                ; @IB_QP_STATE
.subsections_via_symbols
