	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cm_init_qp_rts_attr
_cm_init_qp_rts_attr:                   ## @cm_init_qp_rts_attr
	.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, %r15
	movq	%rsi, %r14
	movq	%rdi, %r12
	callq	_spin_lock_irqsave
	movl	$-131, %eax
	addl	56(%r12), %eax
	cmpl	$6, %eax
	ja	LBB0_9
## %bb.1:
	movl	60(%r12), %eax
	movq	_IB_CM_LAP_UNINIT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_8
## %bb.2:
	movq	_IB_QP_STATE@GOTPCREL(%rip), %rax
	movq	_IB_QP_SQ_PSN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%r15)
	movl	52(%r12), %edi
	callq	_be32_to_cpu
	movl	%eax, 40(%r14)
	movl	48(%r12), %eax
	leal	-129(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_3
## %bb.4:
	movq	_IB_QP_RETRY_CNT@GOTPCREL(%rip), %rax
	movq	_IB_QP_RNR_RETRY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_IB_QP_MAX_QP_RD_ATOMIC@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	orl	%ecx, (%r15)
	movl	44(%r12), %eax
	movl	%eax, 36(%r14)
	movl	40(%r12), %eax
	movl	%eax, 32(%r14)
	movl	36(%r12), %eax
	movl	%eax, 28(%r14)
	jmp	LBB0_5
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_8:
	movq	_IB_QP_ALT_PATH@GOTPCREL(%rip), %rax
	movq	_IB_QP_PATH_MIG_STATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%r15)
	movq	24(%r12), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r14)
	movl	16(%r12), %eax
	movl	%eax, 16(%r14)
	movl	12(%r12), %eax
	movl	%eax, 12(%r14)
	movl	8(%r12), %eax
	movl	%eax, 8(%r14)
	movq	_IB_MIG_REARM@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_3:
	cmpl	$128, %eax
	jne	LBB0_6
LBB0_5:
	movq	_IB_QP_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
	movl	32(%r12), %eax
	movl	%eax, 24(%r14)
LBB0_6:
	xorl	%ebx, %ebx
	cmpl	$0, 8(%r12)
	je	LBB0_10
## %bb.7:
	movq	_IB_QP_PATH_MIG_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
	movq	_IB_MIG_REARM@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
LBB0_10:
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_CM_LAP_UNINIT,4,2           ## @IB_CM_LAP_UNINIT
	.comm	_IB_QP_STATE,4,2                ## @IB_QP_STATE
	.comm	_IB_QP_SQ_PSN,4,2               ## @IB_QP_SQ_PSN
	.comm	_IB_QP_RETRY_CNT,4,2            ## @IB_QP_RETRY_CNT
	.comm	_IB_QP_RNR_RETRY,4,2            ## @IB_QP_RNR_RETRY
	.comm	_IB_QP_MAX_QP_RD_ATOMIC,4,2     ## @IB_QP_MAX_QP_RD_ATOMIC
	.comm	_IB_QP_TIMEOUT,4,2              ## @IB_QP_TIMEOUT
	.comm	_IB_QP_PATH_MIG_STATE,4,2       ## @IB_QP_PATH_MIG_STATE
	.comm	_IB_MIG_REARM,8,3               ## @IB_MIG_REARM
	.comm	_IB_QP_ALT_PATH,4,2             ## @IB_QP_ALT_PATH
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_cm_init_qp_rts_attr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cm_init_qp_rts_attr
_cm_init_qp_rts_attr:                   ; @cm_init_qp_rts_attr
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	bl	_spin_lock_irqsave
	ldr	w8, [x19, #56]
	sub	w8, w8, #131
	cmp	w8, #6
	b.hi	LBB0_4
; %bb.1:
	ldr	w8, [x19, #60]
Lloh0:
	adrp	x9, _IB_CM_LAP_UNINIT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IB_CM_LAP_UNINIT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_5
; %bb.2:
Lloh3:
	adrp	x8, _IB_QP_STATE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IB_QP_STATE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _IB_QP_SQ_PSN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IB_QP_SQ_PSN@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x21]
	ldr	w0, [x19, #52]
	bl	_be32_to_cpu
	str	w0, [x20, #40]
	ldr	w8, [x19, #48]
	sub	w9, w8, #129
	cmp	w9, #2
	b.hs	LBB0_6
; %bb.3:
Lloh9:
	adrp	x8, _IB_QP_RETRY_CNT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IB_QP_RETRY_CNT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _IB_QP_RNR_RETRY@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IB_QP_RNR_RETRY@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh15:
	adrp	x9, _IB_QP_MAX_QP_RD_ATOMIC@GOTPAGE
Lloh16:
	ldr	x9, [x9, _IB_QP_MAX_QP_RD_ATOMIC@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [x21]
	orr	w8, w8, w9
	str	w8, [x21]
	ldr	w8, [x19, #44]
	str	w8, [x20, #36]
	ldur	d0, [x19, #36]
	stur	d0, [x20, #28]
	b	LBB0_7
LBB0_4:
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_12
LBB0_5:
	mov	w22, #0
Lloh21:
	adrp	x8, _IB_QP_ALT_PATH@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IB_QP_ALT_PATH@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _IB_QP_PATH_MIG_STATE@GOTPAGE
Lloh25:
	ldr	x9, [x9, _IB_QP_PATH_MIG_STATE@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x21]
	ldr	x8, [x19, #24]
	ldr	w8, [x8]
	str	w8, [x20, #20]
	ldur	d0, [x19, #12]
	stur	d0, [x20, #12]
	ldr	w8, [x19, #8]
	str	w8, [x20, #8]
	b	LBB0_10
LBB0_6:
	cmp	w8, #128
	b.ne	LBB0_8
LBB0_7:
Lloh27:
	adrp	x8, _IB_QP_TIMEOUT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _IB_QP_TIMEOUT@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
	ldr	w8, [x19, #32]
	str	w8, [x20, #24]
LBB0_8:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_11
; %bb.9:
	mov	w22, #0
Lloh30:
	adrp	x8, _IB_QP_PATH_MIG_STATE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _IB_QP_PATH_MIG_STATE@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
LBB0_10:
Lloh33:
	adrp	x8, _IB_MIG_REARM@GOTPAGE
Lloh34:
	ldr	x8, [x8, _IB_MIG_REARM@GOTPAGEOFF]
Lloh35:
	ldr	x8, [x8]
	str	x8, [x20]
	b	LBB0_12
LBB0_11:
	mov	w22, #0
LBB0_12:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_CM_LAP_UNINIT,4,2           ; @IB_CM_LAP_UNINIT
	.comm	_IB_QP_STATE,4,2                ; @IB_QP_STATE
	.comm	_IB_QP_SQ_PSN,4,2               ; @IB_QP_SQ_PSN
	.comm	_IB_QP_RETRY_CNT,4,2            ; @IB_QP_RETRY_CNT
	.comm	_IB_QP_RNR_RETRY,4,2            ; @IB_QP_RNR_RETRY
	.comm	_IB_QP_MAX_QP_RD_ATOMIC,4,2     ; @IB_QP_MAX_QP_RD_ATOMIC
	.comm	_IB_QP_TIMEOUT,4,2              ; @IB_QP_TIMEOUT
	.comm	_IB_QP_PATH_MIG_STATE,4,2       ; @IB_QP_PATH_MIG_STATE
	.comm	_IB_MIG_REARM,8,3               ; @IB_MIG_REARM
	.comm	_IB_QP_ALT_PATH,4,2             ; @IB_QP_ALT_PATH
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_cm_init_qp_rts_attr
.subsections_via_symbols
