	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cm_init_qp_rtr_attr
_cm_init_qp_rtr_attr:                   ## @cm_init_qp_rtr_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, %rbx
	callq	_spin_lock_irqsave
	movl	56(%rbx), %eax
	addl	$-128, %eax
	cmpl	$6, %eax
	ja	LBB0_6
## %bb.1:
	movq	_IB_QP_STATE@GOTPCREL(%rip), %rax
	movq	_IB_QP_AV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_IB_QP_PATH_MTU@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_IB_QP_DEST_QPN@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_IB_QP_RQ_PSN@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%r15)
	movl	52(%rbx), %eax
	movl	%eax, 44(%r14)
	movl	48(%rbx), %eax
	movl	%eax, 40(%r14)
	movl	44(%rbx), %edi
	callq	_be32_to_cpu
	movq	%rax, 32(%r14)
	movl	40(%rbx), %edi
	callq	_be32_to_cpu
	movq	%rax, 24(%r14)
	movl	36(%rbx), %eax
	movq	_IB_QPT_RC@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_3
## %bb.2:
	movq	_IB_QPT_XRC_TGT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_4
LBB0_3:
	movq	_IB_QP_MAX_DEST_RD_ATOMIC@GOTPCREL(%rip), %rax
	movq	_IB_QP_MIN_RNR_TIMER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	orl	%ecx, (%r15)
	movl	32(%rbx), %eax
	movl	%eax, 20(%r14)
	movl	$0, 16(%r14)
LBB0_4:
	xorl	%r12d, %r12d
	cmpl	$0, 8(%rbx)
	je	LBB0_7
## %bb.5:
	movq	_IB_QP_ALT_PATH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
	movq	24(%rbx), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
	movl	16(%rbx), %eax
	movl	%eax, 8(%r14)
	movl	12(%rbx), %eax
	movl	%eax, 4(%r14)
	movl	8(%rbx), %eax
	movl	%eax, (%r14)
	jmp	LBB0_7
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_7:
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_QP_STATE,4,2                ## @IB_QP_STATE
	.comm	_IB_QP_AV,4,2                   ## @IB_QP_AV
	.comm	_IB_QP_PATH_MTU,4,2             ## @IB_QP_PATH_MTU
	.comm	_IB_QP_DEST_QPN,4,2             ## @IB_QP_DEST_QPN
	.comm	_IB_QP_RQ_PSN,4,2               ## @IB_QP_RQ_PSN
	.comm	_IB_QPT_RC,4,2                  ## @IB_QPT_RC
	.comm	_IB_QPT_XRC_TGT,4,2             ## @IB_QPT_XRC_TGT
	.comm	_IB_QP_MAX_DEST_RD_ATOMIC,4,2   ## @IB_QP_MAX_DEST_RD_ATOMIC
	.comm	_IB_QP_MIN_RNR_TIMER,4,2        ## @IB_QP_MIN_RNR_TIMER
	.comm	_IB_QP_ALT_PATH,4,2             ## @IB_QP_ALT_PATH
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_cm_init_qp_rtr_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_rtr_attr
_cm_init_qp_rtr_attr:                   ; @cm_init_qp_rtr_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, #128
	cmp	w8, #6
	b.hi	LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _IB_QP_STATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_QP_STATE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _IB_QP_AV@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IB_QP_AV@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _IB_QP_PATH_MTU@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IB_QP_PATH_MTU@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh9:
	adrp	x9, _IB_QP_DEST_QPN@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IB_QP_DEST_QPN@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh12:
	adrp	x9, _IB_QP_RQ_PSN@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IB_QP_RQ_PSN@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x21]
	ldr	d0, [x19, #48]
	str	d0, [x20, #40]
	ldr	w0, [x19, #44]
	bl	_be32_to_cpu
	str	x0, [x20, #32]
	ldr	w0, [x19, #40]
	bl	_be32_to_cpu
	str	x0, [x20, #24]
	ldr	w8, [x19, #36]
Lloh15:
	adrp	x9, _IB_QPT_RC@GOTPAGE
Lloh16:
	ldr	x9, [x9, _IB_QPT_RC@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_6
; %bb.2:
Lloh18:
	adrp	x9, _IB_QPT_XRC_TGT@GOTPAGE
Lloh19:
	ldr	x9, [x9, _IB_QPT_XRC_TGT@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_6
; %bb.3:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_7
LBB0_4:
	mov	w22, #0
Lloh21:
	adrp	x8, _IB_QP_ALT_PATH@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IB_QP_ALT_PATH@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
	ldr	x8, [x19, #24]
	ldr	w8, [x8]
	str	w8, [x20, #12]
	ldur	d0, [x19, #12]
	stur	d0, [x20, #4]
	ldr	w8, [x19, #8]
	str	w8, [x20]
	b	LBB0_8
LBB0_5:
Lloh24:
	adrp	x8, _EINVAL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_8
LBB0_6:
Lloh27:
	adrp	x8, _IB_QP_MAX_DEST_RD_ATOMIC@GOTPAGE
Lloh28:
	ldr	x8, [x8, _IB_QP_MAX_DEST_RD_ATOMIC@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
Lloh30:
	adrp	x9, _IB_QP_MIN_RNR_TIMER@GOTPAGE
Lloh31:
	ldr	x9, [x9, _IB_QP_MIN_RNR_TIMER@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x21]
	orr	w8, w8, w9
	str	w8, [x21]
	ldr	w8, [x19, #32]
	stp	wzr, w8, [x20, #16]
	ldr	w8, [x19, #8]
	cbnz	w8, LBB0_4
LBB0_7:
	mov	w22, #0
LBB0_8:
	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	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_QP_STATE,4,2                ; @IB_QP_STATE
	.comm	_IB_QP_AV,4,2                   ; @IB_QP_AV
	.comm	_IB_QP_PATH_MTU,4,2             ; @IB_QP_PATH_MTU
	.comm	_IB_QP_DEST_QPN,4,2             ; @IB_QP_DEST_QPN
	.comm	_IB_QP_RQ_PSN,4,2               ; @IB_QP_RQ_PSN
	.comm	_IB_QPT_RC,4,2                  ; @IB_QPT_RC
	.comm	_IB_QPT_XRC_TGT,4,2             ; @IB_QPT_XRC_TGT
	.comm	_IB_QP_MAX_DEST_RD_ATOMIC,4,2   ; @IB_QP_MAX_DEST_RD_ATOMIC
	.comm	_IB_QP_MIN_RNR_TIMER,4,2        ; @IB_QP_MIN_RNR_TIMER
	.comm	_IB_QP_ALT_PATH,4,2             ; @IB_QP_ALT_PATH
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_cm_init_qp_rtr_attr
.subsections_via_symbols
