	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ocrdma_mbx_modify_qp           ## -- Begin function ocrdma_mbx_modify_qp
	.p2align	4, 0x90
_ocrdma_mbx_modify_qp:                  ## @ocrdma_mbx_modify_qp
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_OCRDMA_CMD_MODIFY_QP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$12, %esi
	callq	_ocrdma_init_emb_mqe
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movl	4(%r13), %eax
	movl	%eax, 4(%rbx)
	movl	$0, 8(%rbx)
	movq	_IB_QP_STATE@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_4
## %bb.3:
	movq	%rbx, %r14
	addq	$8, %r14
	movl	(%r12), %edi
	callq	_get_ocrdma_qp_state
	movq	_OCRDMA_QP_PARAMS_STATE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	_OCRDMA_QP_PARAMS_STATE_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	orl	%eax, (%rbx)
	movq	_OCRDMA_QP_PARA_QPS_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_5
LBB0_1:
	negl	%r14d
	jmp	LBB0_8
LBB0_4:
	movl	(%r13), %eax
	movq	_OCRDMA_QP_PARAMS_STATE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	_OCRDMA_QP_PARAMS_STATE_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	%rbx, %r14
LBB0_5:
	orl	%eax, (%r14)
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	movl	%r15d, %ecx
	callq	_ocrdma_set_qp_params
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_ocrdma_mbx_cmd
	movl	%eax, %r14d
LBB0_7:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_OCRDMA_CMD_MODIFY_QP,4,2       ## @OCRDMA_CMD_MODIFY_QP
	.comm	_IB_QP_STATE,4,2                ## @IB_QP_STATE
	.comm	_OCRDMA_QP_PARAMS_STATE_SHIFT,4,2 ## @OCRDMA_QP_PARAMS_STATE_SHIFT
	.comm	_OCRDMA_QP_PARAMS_STATE_MASK,4,2 ## @OCRDMA_QP_PARAMS_STATE_MASK
	.comm	_OCRDMA_QP_PARA_QPS_VALID,4,2   ## @OCRDMA_QP_PARA_QPS_VALID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ocrdma_mbx_modify_qp           ; -- Begin function ocrdma_mbx_modify_qp
	.p2align	2
_ocrdma_mbx_modify_qp:                  ; @ocrdma_mbx_modify_qp
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
Lloh3:
	adrp	x8, _OCRDMA_CMD_MODIFY_QP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OCRDMA_CMD_MODIFY_QP@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	w1, #12
	bl	_ocrdma_init_emb_mqe
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	mov	x24, x0
	str	wzr, [x24, #8]!
	ldr	w8, [x23, #4]
	stur	w8, [x24, #-4]
Lloh6:
	adrp	x8, _IB_QP_STATE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IB_QP_STATE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_4
; %bb.2:
	ldr	w0, [x22]
	bl	_get_ocrdma_qp_state
Lloh9:
	adrp	x8, _OCRDMA_QP_PARAMS_STATE_SHIFT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _OCRDMA_QP_PARAMS_STATE_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	lsl	w8, w0, w8
Lloh12:
	adrp	x9, _OCRDMA_QP_PARAMS_STATE_MASK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _OCRDMA_QP_PARAMS_STATE_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	and	w8, w8, w9
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
Lloh15:
	adrp	x8, _OCRDMA_QP_PARA_QPS_VALID@GOTPAGE
Lloh16:
	ldr	x8, [x8, _OCRDMA_QP_PARA_QPS_VALID@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	b	LBB0_5
LBB0_3:
	neg	w21, w24
	b	LBB0_8
LBB0_4:
	ldr	w8, [x23]
Lloh18:
	adrp	x9, _OCRDMA_QP_PARAMS_STATE_SHIFT@GOTPAGE
Lloh19:
	ldr	x9, [x9, _OCRDMA_QP_PARAMS_STATE_SHIFT@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	lsl	w8, w8, w9
Lloh21:
	adrp	x9, _OCRDMA_QP_PARAMS_STATE_MASK@GOTPAGE
Lloh22:
	ldr	x9, [x9, _OCRDMA_QP_PARAMS_STATE_MASK@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	and	w8, w8, w9
	mov	x24, x20
LBB0_5:
	ldr	w9, [x24]
	orr	w8, w9, w8
	str	w8, [x24]
	mov	x0, x23
	mov	x1, x20
	mov	x2, x22
	mov	x3, x21
	bl	_ocrdma_set_qp_params
	mov	x21, x0
	cbnz	w0, LBB0_7
; %bb.6:
	mov	x0, x19
	mov	x1, x20
	bl	_ocrdma_mbx_cmd
	mov	x21, x0
LBB0_7:
	mov	x0, x20
	bl	_kfree
LBB0_8:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_OCRDMA_CMD_MODIFY_QP,4,2       ; @OCRDMA_CMD_MODIFY_QP
	.comm	_IB_QP_STATE,4,2                ; @IB_QP_STATE
	.comm	_OCRDMA_QP_PARAMS_STATE_SHIFT,4,2 ; @OCRDMA_QP_PARAMS_STATE_SHIFT
	.comm	_OCRDMA_QP_PARAMS_STATE_MASK,4,2 ; @OCRDMA_QP_PARAMS_STATE_MASK
	.comm	_OCRDMA_QP_PARA_QPS_VALID,4,2   ; @OCRDMA_QP_PARA_QPS_VALID
.subsections_via_symbols
